473,386 Members | 1,763 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,386 software developers and data experts.

Simple UPDATE query not running

I am getting the error "Operation must use an updateable query" when I run the following Query:

Expand|Select|Wrap|Line Numbers
  1. UPDATE q_ADMIN_MergedContactIDs 
  2. INNER JOIN t_RelatedContacts ON q_ADMIN_MergedContactIDs.Old_ID = t_RelatedContacts.Contact_ID 
  3. SET t_RelatedContacts.Contact_ID = [q_ADMIN_MergedContactIDs].[New_ID];
  4.  
t_RelatedContacts only has 4 number fields:
RelCon_ID - AutoNumber
Contact_ID - Number - Long Integer
Activity_ID - Number - Long Integer
Referral_ID - Number - Long Integer

This is the code for q_ADMIN_MergedContactIDs. dbo_INT_AUX_MRG_DEL_HISTORY is an ODBC-linked table.

DUP_LIST_ID - Number - Long Integer
GOOD_LIST_ID - Number - Long Integer

Expand|Select|Wrap|Line Numbers
  1. SELECT dbo_INT_AUX_MRG_DEL_HISTORY.DIR_ID, dbo_INT_AUX_MRG_DEL_HISTORY.DUP_LIST_ID AS Old_ID, dbo_INT_AUX_MRG_DEL_HISTORY.GOOD_LIST_ID AS New_ID, q_MasterRelatedContacts.Display_NM
  2. FROM dbo_INT_AUX_MRG_DEL_HISTORY INNER JOIN q_MasterRelatedContacts ON dbo_INT_AUX_MRG_DEL_HISTORY.DUP_LIST_ID = q_MasterRelatedContacts.Contact_ID
  3. WHERE (((dbo_INT_AUX_MRG_DEL_HISTORY.DIR_ID)=-2));

Any insight greatly appreciated.
Thanks,
Sandra
Nov 1 '12 #1
2 1510
UPDATE:

The Update query runs when I do a MAKE TABLE on the second query and use the TEMP table instead of q_ADMIN_MergedContactIDs.

Expand|Select|Wrap|Line Numbers
  1. UPDATE Temp_UpdatedContactIDs INNER JOIN t_RelatedContacts ON Temp_UpdatedContactIDs.Old_ID = t_RelatedContacts.Contact_ID SET t_RelatedContacts.Contact_ID = [Temp_UpdatedContactIDs].[New_ID];
  2.  
Nov 1 '12 #2
NeoPa
32,556 Expert Mod 16PB
Reasons for a Query to be Non-Updatable may prove helpful Sandra.
Nov 2 '12 #3

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

Similar topics

2
by: michael montagne | last post by:
I have a column that I need to change. I need to convert from mm to inches. So here is the string I thought would work. UPDATE Plots SET Plots.Width = /25.4, Plots.Height = /25.4 WHERE...
2
by: thetuckers_jersey | last post by:
I have the following query : UPDATE SH_Tourcodes LEFT JOIN Tour ON (SH_Tourcodes.RECEIPT = Tour.RECEIPT) AND (SH_Tourcodes.TILL = Tour.TILL) AND (SH_Tourcodes.TIME = Tour.TIME) AND...
2
by: Novice at work | last post by:
Using Query Builder, I wrote a simple UPDATE query to update a single record in an Access 2000 database. The query works fine when I run it from the Query Builder in a OleDbCommand object by...
6
by: Dixie | last post by:
I have asked this question before, but I could not get the suggested solution work. So I will give more details this time. I have an append query that adds several hundred records to a table...
3
by: somesteve | last post by:
I feel so stupid for posting this but I cannot figure out why I'm getting an error with this simple update query. update set = '02/14/06 06:00:00 AM' where = '02/14/20 06:00:00 AM' Gives...
3
by: aaronvb | last post by:
Hi there, I'm currently trying to fix up a database that has had many different people work on it and therefore is confusing me no end. Currently i am trying to update a field, in the table ...
5
by: Kosmos | last post by:
Good morning fellow programmers. Just a quick question I hope... I'm trying to run some SQL from VBA and I'm getting an error....I think it's Syntax? This is the code: Dim stSQL2
11
by: gnortenjones | last post by:
I have a linked table (to an oracle db), and I am trying to run a simple update query against it to change some data, but I am getting the following error: "...didn't update 0 fields due to a type...
2
by: Neville MADDEN | last post by:
Good morning everyone, I'm producing an A97 database of Mining records. One of the tables has the map sheet references as SH/55-14. The other table has the references as SH55-17. I want to...
1
by: themightyrhino | last post by:
I'm writing a process to perform multiple updates on a main table from information stored in different component reports. As you can see from the below, I'm using a select query to base the update...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.