Hi Mike,
I won't ask why you have a completed date as a text datatype, rather than a
datetime datatype. But given that it IS a text datatype, the following will
work:
DoCmd.RunSQL "UPDATE tblPayrollCompletion SET CompletedDate = '0'"
will set CompletedDate to the text string '0'
DoCmd.RunSQL "UPDATE tblPayrollCompletion SET CompletedDate = Null"
will set CompletedDate to null
DoCmd.RunSQL "UPDATE tblPayrollCompletion SET CompletedDate = ''"
(the end of that line is singlequote singlequote doublequote)
will set CompletedDate to a zero-length text string (which is not the same
as null)
DoCmd.RunSQL "UPDATE tblPayrollCompletion SET CompletedDate = 'Not updated'"
will set CompletedDate to the text string 'Not updated'
You pays your money, you takes your choice ;-)
More explanation: Since the field is a text field, you must surround the new
value with text delimiters (except for the Null constant). In general, you
can use either singlequote or doublequote characters as the delimiter; here,
since you are already using the doublequote character to delimit the SQL
string, you need to use singlequote characters within that string.
HTH,
Rob