473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Not an update-able query error with subquery

anoble1
245 128KB
Getting this error when trying to do an update query.
Expand|Select|Wrap|Line Numbers
  1. UPDATE tblNames INNER JOIN (qryBatteryBonus INNER JOIN tblEntrys ON (qryBatteryBonus.Month = tblEntrys.Month) AND (qryBatteryBonus.Year = tblEntrys.Year)) ON (tblNames.Salesman = qryBatteryBonus.BH_SMN) AND (tblNames.NameID = tblEntrys.Name) AND (tblNames.NameID = tblEntrys.Name) SET tblEntrys.InterstateBatteries = [qryBatteryBonus].[Test];
  2.  
I have 3 tables that I have linked together. I am trying to update tblEntrys.InterstateBatteries with a field that I am querying qryBatteryBonus.Test.

Ideas?
Dec 27 '19 #1
2 1692
NeoPa
32,556 Expert Mod 16PB
Check out Reasons for a Query to be Non-Updatable.

I suspect [qryBatteryBonus] is simply not updatable but that may not be the case. You should find it by checking through the possible optiions though.
Jan 1 '20 #2
Anytime you have unresolved issues in your query or SQL command, the statements will be not updatable. Try not making your queries and SQL so complicated when intending to use them to update data.

You could run a query to obtain your data, then use VBA variable fields to move the data from the query to your Update command only updating the table, not a query. Just one idea. There are a thousand ways to do it I'm sure...
Jan 6 '20 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Tom wilson | last post by:
This is driving me nuts. I'm trying to update an Excel spreadsheet using ADO.Net and Oledb in VB.Net. The connection is open, the adapter is connected and the dataset is loaded. Here's the code...
0
by: abdul haleem | last post by:
hiye guys, can anyone tell me whats wrong with this piece of code? to my knowledge, its looks and seems fine. i'm very puzzle by this error. i get this error msg "Operation must use an updateable...
4
by: John | last post by:
Hi I am getting error on ExecuteNonQuery() . Full code is given below. The values I have given are; ('trtrt', 'retret', '1/1/2', '333'). Any idea what is the problem? Thanks Regards
1
by: John | last post by:
Hi I have a web database app which works fine on the local server but when run on a remote shared host, it throws the below error. What am I doing wrong? Thanks Regards
17
by: Michael C# | last post by:
Question - I keep getting the above error when I try to run an INSERT query against an Access database. I'm running XP Professional and VS.NET 2003. I run SELECT queries from ASP.NET against it...
606
by: Neil Zanella | last post by:
Hello, I am trying to update an MS access database from ASP.NET. I am using IIS on Windows XP Pro. I can issue SELECT statements from ASP.NET using ADO.NET but I cannot seem to be able to carry...
2
by: SheryMich | last post by:
Hi - I am having a bit of a problem with the insert into a database. When I go to insert a record into an un-keyed, single table Access database, I get the aforementioned ''Operation Must Use an...
8
by: Jim in Arizona | last post by:
I've been using an example out of a book to be able to edit the rows in a database. I am getting the following error: ========================================================...
11
by: Arpan | last post by:
I have always been working with SQL Server 2005 for ASP.NET apps but due to some reasons, had to revert back to MS-Access 2000. When I try to insert/update a MS-Access DB table (MDB), ASP.NET...
2
by: imnewtoaccess | last post by:
Hello everybody, I am completely new to access and am facing a problem. I am trying to run the following query from the query designer ( i am using access 2000 and the table that i am trying...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.