I have the followind code executing when a popup form closes.
I need the 'RequiredDate' field in the backend db to update to what is stored in the [RequiredDate] fireld. I also have the Shipped date updating in the db but that is done automatically since it is bound.
First I got the "Write conflict" errors, but once I fixed those, now it will work but only if I update the shipping info, close the form, open it again, then close it (it will work once the same shipping info is there, and the same after closing the subform twice)
Code:
CurrentDb.Execute ("UPDATE Orders SET RequiredDate=#" & [ShippedDate] & "# WHERE OrderID=" & [OrderID] & ";")
First I got the "Write conflict" errors, but once I fixed those, now it will work but only if I update the shipping info, close the form, open it again, then close it (it will work once the same shipping info is there, and the same after closing the subform twice)
Comment