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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
"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
|
|||
|
|||
"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
|
|||
|
|||
"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 | |
|
|
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 |