UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> "field not updateable" error in upsert query    
 
   
norm1320
post Mar 24 2008, 04:16 PM
Post #1

UtterAccess Member
Posts: 36



Please see attached file.

I'm trying to set up a query that will update existing records and add new records into a table. The query will then be called by window's scheduler via a macro. Unfortunately whenever I run this query I get an error saying that the Item Description field in the target table is not an updateable field and that the query has therefore failed.

Can anyone tell me why I'm getting this error and what to do to fix it?
Attached File(s)
Attached File  example.zip ( 15.22K ) Number of downloads: 4
 
Go to the top of the page
 
+
Rainlover
post Mar 25 2008, 05:54 AM
Post #2

Utterly Banned
Posts: 6,006
From: Brisbane Qld Australia



I downloaded.

I think you have left some things out of the downloaded database.

Sugget you download it yourself and look for the missing items.

Then recreate a new database and attach.

Would be happy to help with more info and real data.
Go to the top of the page
 
+
norm1320
post Mar 25 2008, 10:15 AM
Post #3

UtterAccess Member
Posts: 36



ok, let's see if this is a little more clear. Sorry I forgot to make the tables visible in the previous example. I always tagged tables invisible so that most of my co-workers can't find them and mess them up.
Attached File(s)
Attached File  example.zip ( 35.05K ) Number of downloads: 3
 
Go to the top of the page
 
+
Rainlover
post Mar 25 2008, 11:57 PM
Post #4

Utterly Banned
Posts: 6,006
From: Brisbane Qld Australia



The field "Item Description" in your Query "intermediate step query" is not Updateable because it is a Concatenated field.

You are trying to update the query. Is this what you want or do you want to update the table "Target Table".
Go to the top of the page
 
+
norm1320
post Mar 26 2008, 08:10 AM
Post #5

UtterAccess Member
Posts: 36



I need to update the table "Target Table". How can it be trying to update a query when the only action query has [Target Table]!* in the "update to:" line?
Go to the top of the page
 
+
Rainlover
post Mar 26 2008, 05:46 PM
Post #6

Utterly Banned
Posts: 6,006
From: Brisbane Qld Australia



The Table you are trying to update is intermediate step query.

Update To Is the new value which you want to make. Swap your Query around. It is back to front.

As an example change the value in Update to, to "AAAA" and see what happens. But delete Item Description first as that is not updateable.
Go to the top of the page
 
+
norm1320
post Mar 28 2008, 10:49 AM
Post #7

UtterAccess Member
Posts: 36



I think I've got my brain on the right track now. I just couldn't get the idea of "update to WHERE" out of my head when in actuality it was meant as "update to WHAT". Thanks for your patience and assistance.
Go to the top of the page
 
+
Rainlover
post Mar 28 2008, 05:36 PM
Post #8

Utterly Banned
Posts: 6,006
From: Brisbane Qld Australia



Glad to hear you got it. Thanks for the update.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 04:08 AM