Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2006, 04:37 PM
Authorized User
 
Join Date: Apr 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Update query

I have a reoccuring problem that keeps coming up with update (and delete/append) queries. Anytime I try and tie the table I am trying to update to a list of records I get a message that says "Operation must use an updateable query".

For example:

UPDATE DISTINCTROW TblBaselinePriceFile INNER JOIN qryCrossFacilityMissingPricesMissingNDC ON (TblBaselinePriceFile.MPM_NDC = qryCrossFacilityMissingPricesMissingNDC.NDCCurrent ) AND (TblBaselinePriceFile.MEM_IK = qryCrossFacilityMissingPricesMissingNDC.MEMIK) SET TblBaselinePriceFile.BaselinePerUnitCost = [resolvedprice];


Any suggestions on how to solve this issue? Thanks in advance for your help


 
Old May 11th, 2006, 03:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Queries that have joins on them are not updateable. What you have to do is make the joined query into a make-table query that outputs data, then perform the update on the new table. You cannot do "both at once." Silly, huh?


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Query Help dalezjc Classic ASP Basics 8 March 18th, 2008 08:49 AM
Update Query rsm42 ASP.NET 1.0 and 1.1 Basics 0 April 9th, 2007 09:32 AM
I solved insert query.now see this Update Query. [email protected] VB.NET 2002/2003 Basics 2 September 21st, 2006 12:48 AM
Please Help me about UPDATE query huyremy VB Databases Basics 8 September 29th, 2004 03:45 AM
Update query edcaru Access 3 June 14th, 2004 03:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.