×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

MS Jet Error: Operation must use an updateable query.

MS Jet Error: Operation must use an updateable query.

MS Jet Error: Operation must use an updateable query.

(OP)
Hi,

I am getting the error 'Operation must use an updateable query.' when I run an update query with subquery in MS access.  Here is an example of the query:


UPDATE MatMonData SET MatMonData.prodHeadID = (
    SELECT ProdHeader.prodHeadID
    FROM ProdCalendar INNER JOIN ProdHeader ProdCalendar.prodCalID = ProdHeader.prodCalID
    WHERE prodCalDate=matMonDataDateTime And wcName=matMonDataLineNo;)
WHERE MatMonData.prodHeadID Is Null;


As you can see I am using a subquery to populate a field with the relevant number (which happens to be a foreign key).  The reason for this is I am importing a flat file, where the information is organised in the database in mulitple tables.

Not sure if this is enough information - let me know and I can supply more if needed.

Thanks for your help.

RE: MS Jet Error: Operation must use an updateable query.

Hello, I did not see any problem on the code that you wrote except that there is missing something that specifies on what fields are you performing the join. So after:

INNER JOIN ProdHeader

just include: ON

I hope this will work.

RE: MS Jet Error: Operation must use an updateable query.

(OP)
Hi,

Thanks for your help - I'll give it a whirl.

Regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources