Can someone please, please help!
I'm trying to update records that are marked 'new' with an SQL update query on the subform (ONLY!); however I don't know how to limit the query to the subform only. It update everything. Here's what I've got so far.
DoCmd.RunSQL "UPDATE tPEPFARAllotments " & _
"SET FormFinalCompleted = 'final complete' " & _
WHERE Forms!fPEPFARAllotFm1!DocumentNumber= fPEPFARAllotFm2!DocumentNumber AND fPEPFARAllotFm2!FormFinalCompleted = 'new' ", -1
Anyone's help would be greatly appreciated. Thanks!
I'm trying to update records that are marked 'new' with an SQL update query on the subform (ONLY!); however I don't know how to limit the query to the subform only. It update everything. Here's what I've got so far.
DoCmd.RunSQL "UPDATE tPEPFARAllotments " & _
"SET FormFinalCompleted = 'final complete' " & _
WHERE Forms!fPEPFARAllotFm1!DocumentNumber= fPEPFARAllotFm2!DocumentNumber AND fPEPFARAllotFm2!FormFinalCompleted = 'new' ", -1
Anyone's help would be greatly appreciated. Thanks!