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!