My Assistant
![]() ![]() |
|
|
Jul 5 2011, 01:38 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 227 |
Hi UtterAccess form, I've had good luck with my questions on this form before so I though you might be able to help me with this problem
I'm trying run a update query but get a message "Operation must use an updateable query" Instead of having to create another table with all the information I need for the criteria is there a way I can make some sort of temporary table within my query or any other advice would be helpful Thanks for all your time and help Corey |
|
|
|
Jul 5 2011, 01:56 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 1,857 From: BC, Canada |
Hi UtterAccess form, I've had good luck with my questions on this form before so I though you might be able to help me with this problem I'm trying run a update query but get a message "Operation must use an updateable query" Instead of having to create another table with all the information I need for the criteria is there a way I can make some sort of temporary table within my query or any other advice would be helpful Thanks for all your time and help Corey Well I am not sure what you would be needing a temp table for in relation to the error. The error you got seems to imply that your query does not permit changes to data. Perhaps if you post the SQL of your query it might help figure out what's wrong. Mike |
|
|
|
Jul 5 2011, 02:04 PM
Post
#3
|
|
|
UtterAccess Addict Posts: 227 |
Thanks Mike
The table dbo_VC_AdminServices is off of our server I'm just using that to make the criteria and the test table is the one I'm updating to [sql]UPDATE dbo_VC_AdminServices INNER JOIN test ON dbo_VC_AdminServices.app_num = test.app_num SET test.act_fund = Yes;[\sql] |
|
|
|
Jul 5 2011, 03:15 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 1,857 From: BC, Canada |
Thanks Mike The table dbo_VC_AdminServices is off of our server I'm just using that to make the criteria and the test table is the one I'm updating to [sql]UPDATE dbo_VC_AdminServices INNER JOIN test ON dbo_VC_AdminServices.app_num = test.app_num SET test.act_fund = Yes;[\sql] Hmmm not sure... what about the order in which the tables appear in the query? CODE UPDATE test INNER JOIN dbo_VC_AdminServices ON test.app_num = dbo_VC_AdminServices.app_num SET test.act_fund = Yes Mike |
|
|
|
Jul 5 2011, 03:44 PM
Post
#5
|
|
|
UtterAccess VIP Posts: 4,622 From: North Carolina, USA |
Or, perhaps, move the SET argument where SQL expects to find it:
UPDATE test SET test.act_fund = Yes INNER JOIN dbo_VC_AdminServices ON test.app_num = dbo_VC_AdminServices.app_num |
|
|
|
Jul 5 2011, 06:56 PM
Post
#6
|
|
|
UtterAccess VIP Posts: 2,441 From: Columbia, Maryland |
Do both tables have a primary key? If not, that will often make un update query fail with that error.
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 18th May 2013 - 05:35 PM |