Update Query "Too few Parameters"

teambond

Registered User.
Local time
Yesterday, 16:52
Joined
Jun 2, 2013
Messages
24
Hi,

This is going to seem so easy but I cannot get this simple update query to work.

Code:
UpdateProcess = "UPDATE OrderDetailT SET DepSubCompl =" & Date & " WHERE ID=" & Forms![JobCardandSignoffF]![ID]
CurrentDb.Execute UpdateProcess

If I run the debug over it UpdateProcess comes out correctly as
"UPDATE OrderDetailT SET DepSubCompl = 02-Jun-2013 WHERE ID=56"
which is correct, but when it executes it gets this error.

Can someone help please?

Thanks.
 
For starters, a date value needs to be surrounded by #.
 

Users who are viewing this thread

Back
Top Bottom