Ms Access Error 3073 Operation Must Use An Updateable Query
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Operation Must Be An Updateable Query Access 2010
of this site About Us Learn more about Stack Overflow the company access 2013 operation must use an updateable query Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges operation must use an updateable query c# Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute:
Operation Must Use An Updateable Query Access 2003
Sign up Operation must use an updatable query. (Error 3073) Microsoft Access up vote 17 down vote favorite 4 On some Microsoft Access queries, I get the following message: Operation must use an updatable query. (Error 3073). I work around it by using temporary tables, but I'm wondering if there's a better way. All the tables involved have a primary key. Here's
Access Operation Must Use An Updateable Query Linked Table
the code: UPDATE CLOG SET CLOG.NEXTDUE = ( SELECT H1.paidthru FROM CTRHIST as H1 WHERE H1.ACCT = clog.ACCT AND H1.SEQNO = ( SELECT MAX(SEQNO) FROM CTRHIST WHERE CTRHIST.ACCT = Clog.ACCT AND CTRHIST.AMTPAID > 0 AND CTRHIST.DATEPAID < CLOG.UPDATED_ON ) ) WHERE CLOG.NEXTDUE IS NULL; ms-access share|improve this question edited Oct 4 '08 at 21:46 Sklivvz♦ 20.5k2381152 asked Oct 4 '08 at 16:08 Knox 2,00872655 add a comment| 20 Answers 20 active oldest votes up vote 20 down vote accepted Since Jet 4, all queries that have a join to a SQL statement that summarizes data will be non-updatable. You aren't using a JOIN, but the WHERE clause is exactly equivalent to a join, and thus, the Jet query optimizer treats it the same way it treats a join. I'm afraid you're out of luck without a temp table, though maybe somebody with greater Jet SQL knowledge than I can come up with a workaround. BTW, it might have been updatable in Jet 3.5 (Access 97), as a whole lot of queries were updatable then that became non-updatable when upgraded to Jet 4. -- share|im
360 games PC games operation must be an updateable query access 2013 Windows games Windows phone games Entertainment All Entertainment
Operation Must Use An Updateable Query Asp Net
Movies & TV Music Business & Education Business Students & educators operation must use an updateable query access 2010 windows 7 Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://stackoverflow.com/questions/170578/operation-must-use-an-updatable-query-error-3073-microsoft-access Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/175168 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
Posts Search Community Links Social Groups Pictures & Albums Members List Calendar Search Forums Show Threads Show Posts Tag Search Advanced Search Find All Thanked Posts Go to http://www.access-programmers.co.uk/forums/showthread.php?t=215498 Page... Thread Tools Rating: Display Modes 09-14-2011, 12:45 AM https://bytes.com/topic/access/answers/655652-operation-must-use-updateable-query #1 bulbisi Newly Registered User Join Date: Jan 2011 Location: Brussels, Belgium Posts: 51 Thanks: 8 Thanked 1 Time in 1 Post Run-time error 3073 Operation must use an updateable query Hello all, it looks like i have an issue. I wanted to avoid a kind of temporary table as the operation must DB I'm creating is quite heavy and complex already. Before: 1 Append Query to Table 1 Update Query to fill a new table from the previously created table It worked like a charm but was way to heavy and slow to control (more than 22.000 records every week just for this table) So I wanted to use a Select Query instead the first step After: an updateable query 1 Select Query 1 Update Query to fill a new table from the previous Select Query Then of course I got an error 3073. Note: The update query is running through VBA. Note: I might try a nested Select into the update Query, but i really don't know how to use it. Note: Access 2010 Code for Select Query: Code: SELECT T_CE_TOBE.DebtorNumber, Max(DateDiff("m",[EndOfMonthDate],DateAdd("m",[tblco.Ter],[tblCO.StsLIVDat]))) AS ResidualMonths FROM T_CE_TOBE INNER JOIN tblCO ON T_CE_TOBE.DebtorNumber = tblCO.DebNum GROUP BY T_CE_TOBE.DebtorNumber; Code for Update Query (in VBA): Code: UpdateMonths = "UPDATE T_CE_TOBE LEFT JOIN Q_CE_TOBE_periods ON T_CE_TOBE.DebtorNumber = Q_CE_TOBE_periods.DebtorNumber SET T_CE_TOBE.ResidualMonths = [Q_CE_TOBE_periods].[ResidualMonths]" DoCmd.RunSQL UpdateMonths Any help is really appreciated and thanks a lot in advance bulbisi View Public Profile Find More Posts by bulbisi 09-14-2011, 10:18 AM #2 PNGBill Win XP MS Access 2010 Join Date: Jul 2008 Location: Papua New Guinea & NZ Posts: 2,251 Thanks: 63 Thanked 77 Times in 73 Posts Re: Run-time error 3073 Operation must use an updateable query You can delete the temporary table or all records in that table once it has served it's purpose. Did you test the query first b
help? Post your question and get tips & solutions from a community of 418,595 IT Pros & Developers. It's quick & easy. "Operation must use an updateable query" P: 5 Mike D OS: Windows XP Professional Microsoft Access 2003 I am trying to update a table in my DB from a tempory table. I need to ensure that if records in the main table match records in the temp table (on the keys) they are replaced/updated by the new data in the temp table. the vba code i am running is below: Expand|Select|Wrap|Line Numbers DimmySQLAsString mySQL="UPDATEtab_Org" mySQL=mySQL&"SETOrg_Name=(SELECTtemp_TabOrg.Org_NameFROMtemp_TabOrgWHEREtemp_TabOrg.ORGKey=tab_Org.ORGKey)" mySQL=mySQL&"WHEREEXISTS(SELECTtemp_TabOrg.ORGKeyFROMtemp_TabOrgWHEREtemp_TabOrg.ORGKey=tab_Org.ORGKey);" DoCmd.SetWarningsFalse DoCmd.RunSQLmySQL DoCmd.SetWarningsTrue This is the update on just one field, when i get it working (fingers crossed) it will update all fields in the main table except the key field. When i run this code i get the error "Runtime error 3073, Operation must use an updateable query." The general concessus in the forum is that this error is due to folder permissions etc. but I have checked these and I have the correct permissions, i have also tried to run the query on my personal computer and i get the same error. When i modified the query to not include the subquery in the SET part, instead just SET Org_Name = "some string" it works fine. Now if it was a permissions error i'm thinking that the query should still not work??? If anyone could help me fix the error or has a better way to achieve what i am trying to do it would be greatley appreciated Thanks Mike D May 31 '07 #1 Post Reply Share this Question 4 Replies Expert Mod 10K+ P: 14,534 MMcCarthy Hi Mike, Try this ... Expand|Select|Wrap|Line Numbers DimmySQLAsString mySQL="UPDATEtab_OrgINNERJOINtemp_TabOrg" mySQL=mySQL&"ONtab_Org.ORGKey=temp_TabOrg.ORGKey" mySQL=mySQL&"SETOrg_Name=temp_TabOrg.Org_Name" DoCmd.SetWarningsFalse DoCmd.RunSQLmySQL DoCmd.SetWarningsTrue Mary Jun 1 '07 #2 reply P: 5 Mike D Hi Mary, It works!!!!! thanks for the quick response : ) Mike Jun 1 '07 #3 reply Expert Mod 10K+ P: 14,534 MMcCarthy Hi Mary, It works!!!!! thanks for the quick response : ) Mike No problem Mike. Glad you got it working Mary Jun 1 '07 #4 reply P: n/a Tasos Hi i had the same problem!! and all the support forums refer to permission issues!!! Thanks Mary !!! it works perfectly fine now with this query Regards Tassos Oct 7 '10 #5 reply Message Cancel Changes Post your reply Join Now >> Sign in to post you