Thank you.
I did get it to work, but do not understand why.
Quote:
....your query is not trying to update what you think.
Could you debug the Query String and see if the parameters are correct?
|
I could not figure our how to debug this. Me Access uses Visual Basic 6.3 and its debug and compile run without showing an error.
I changed the statement to
Quote:
Private Sub CmdSaveThisRec_Click()
On Error GoTo Err_CmdSaveThisRec_Click
strSQL = "UPDATE tSelectionSets" & _
" SET Sel_Car_ID = " & Me.[txtSel_Car_ID] & _
" WHERE tSelectionSets_ID = " & Forms![fSelectionSets]![txttSelectionSets_ID]
DoCmd.RunSQL strSQL
Exit_CmdSaveThisRec_Click:
Exit Sub
Err_CmdSaveThisRec_Click:
MsgBox Err.Description
Resume Exit_CmdSaveThisRec_Click
End Sub
|
I really don't understand why replacing
Forms![fSelectCar]![txtSel_Car_ID]
with
Me.[txtSel_Car_ID]
made this work, but it does.
Any education would be appreciated.
Thanks again!
¡Feliz Año Nuevo!
-- Fred