Hi all,
I am trying to execute the following :
mySQL = “UPDATE Cams_Piin_Data1 ” & _
“SET Cams_Piin_Data1.GOVT_EXEC_DATE = #” & vGovExeDate & “#” & _
“WHERE Cams_piin_Data1.piin_code = ‘” & vpiin_combo & “‘”
DoCmd.RunSQL mySQL
the execution of this stems from an After Update event on a form where a date is entered into the field “GOVT_EXEC_DATE ” and I want that date to populate a coresponding field in a different table also called “GOVT_EXEC_DATE “… the “vGovExeDate” is just a variable I used to capture the date entered on the form and the “vpiin_combo ” is a variable I used to capture the field that relates the records in both tables … The form is based on a table called Cams_Procur_Data1 and the record I am trying to modify based on the SQL is in Cams_Piin_Data1
I get an error where a box pops up looking for a parameter value for Cams_Piin_Data1.Govt_Exec_Date and then if I enter a date or leave blank and click “OK” I get an error that says the record is not updateable
Can anyone see anything I am overlooking ?