A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Operation Must use a updatable query" message



 
 
Thread Tools Display Modes
  #1  
Old August 3rd, 2006, 07:51 PM posted to microsoft.public.access.queries
mscertified
external usenet poster
 
Posts: 835
Default "Operation Must use a updatable query" message

Trying to run:

UPDATE tblActivityQuestions AS A SET A.QuestionID = (SELECT Q.ID FROM
tblQuestions As Q WHERE A.ChecklistID = Q.ChecklistID AND A.Sequence =
Q.Sequence);

Why this message? A.QuestionID is not defined in a relationship.
  #2  
Old August 3rd, 2006, 08:51 PM posted to microsoft.public.access.queries
E
external usenet poster
 
Posts: 80
Default "Operation Must use a updatable query" message

Would the A.CheckListID be the issue because the alias 'A' is not defined
within the Select query?

In other words, this line: WHERE A.ChecklistID
Does it scope to the alias in Update?

"mscertified" wrote:

Trying to run:

UPDATE tblActivityQuestions AS A SET A.QuestionID = (SELECT Q.ID FROM
tblQuestions As Q WHERE A.ChecklistID = Q.ChecklistID AND A.Sequence =
Q.Sequence);

Why this message? A.QuestionID is not defined in a relationship.

  #3  
Old August 3rd, 2006, 11:49 PM posted to microsoft.public.access.queries
John Vinson
external usenet poster
 
Posts: 4,033
Default "Operation Must use a updatable query" message

On Thu, 3 Aug 2006 11:51:01 -0700, mscertified
wrote:


Why this message? A.QuestionID is not defined in a relationship.


Try using a Join rather than a subquery:

UPDATE tblActivityQuestions AS A INNER JOIN tblQuestions AS Q
ON A.ChecklistID = Q.ChecklistID
AND A.Sequense = Q.Sequence
SET A.QuestionID = Q.ID;

You will need a unique Index on the combination of ChecklistID and
Sequence.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing Outlook 2003 calendar Noel All Installation & Setup 11 August 22nd, 2005 05:26 PM
Outlook Express is slow ava cohen Outlook Express 18 August 27th, 2004 12:17 AM
error message - server rejecting recipient Ken Outlook Express 5 August 20th, 2004 06:39 PM
msimn.exe-Application error message Blondenblue_uk Outlook Express 2 July 23rd, 2004 01:03 PM
trying to gain access to emails on old hard disk wilfred Outlook Express 2 July 13th, 2004 11:35 AM


All times are GMT +1. The time now is 09:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.