Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3756526
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:51:56+00:00 2026-05-19T09:51:56+00:00

I am nervous to pull the trigger on this query, as I have not

  • 0

I am nervous to pull the trigger on this query, as I have not tooled around with subqueries all that much. I wanted to make sure this beastie does what I want it to do in terms of my program.

DoCmd.RunSQL ("UPDATE Gage_Master SET Gage_Master.Est_Calibration_Cost = SELECT dbo_Gage_Master.Est_Calibration_Cost FROM dbo_Gage_Master WHERE dbo_Gage_Master.Est_Calibration_Cost <> Gage_Master.Est_Calibration_Cost WHERE Gage_Master.Gage_ID = dbo_Gage_Master.Gage_ID;")

Basically – will this puppy update the Estimated Calibration Cost in the Gage_Master table (linked to another program’s MDB datastore with a table by the same name) with the value in the SQL-Server stored copy of the Gage_Master table (dbo_Gage_Master) as long as they are not equal?

Sorry if this is an already asked question – like I said, this is a pretty complex thing, and the last thing I want to do is blank out my prices in my production database because I wrote something wrong. Thanks in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:51:57+00:00Added an answer on May 19, 2026 at 9:51 am

    I’m assuming you’re trying to run this in Access. This would explaing the “Missing Operator” error you’ve referred to in comments–Access doesn’t understand UPDATE...FROM.... Try this instead:

    UPDATE dbo_Gage_Master AS dgm INNER JOIN
      Gage_Master AS gm ON dgm.Gage_ID = gm.Gage_ID
    SET gm.Est_Calibration_Cost = dgm.Est_Calibration_Cost
    WHERE gm.Est_Calibration_Cost <> dgm.Est_Calibration_Cost; 
    

    Yeah, it looks like you might be updating the wrong way, because dgm comes first in the join (it just worked out that way…). That’s not the case, as it’s the SET clause that determines what updates actually get done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've joined a team that works on a product. This product has been around
I have a Windows service that has a number of threads that all need
This is my very first question so I am a bit nervous about it
this is a really stupid question but I have a deadline and I'm very
I have a web application which our customer use it all day. Some times,
Greetings, I hope someone has the patience to read this. I have a setup
i've to submit this assigment in few hours and i'm very nervous, it's sort
I have a number of data access methods that accept a dynamic object parameter
Supposed that we have classes Person, Character, and PersonCharacter and their corresponding structure in
Call me lame, but I'm tired of my subconscious C-x C-s nervous twitch. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.