M
Michael Conroy
I am using a recordset to add a new record to my table. All the fields on the
unbound form are assigned to variables with the nz() function around them. I
am assigning "" to strings and 0 to integers should those fields be empty.
The problem occurs with the three date fields. If I use CR =
nz(.copyright,0), the table gets updated with 30 December 1899, which is what
it should do. However, what I want is an empty date field. Is there any way
to have an empty value for a date field? Assigning a "" to a date field gets
me a type mismatch error. I can trap the empty field with if
isnull(.copyright), but then what value do I give the variable CR. I suppose
the solution is to put the isnull statement in with the recordset updating,
but I wanted to find out if a date field can have an empty value. Thanks for
your help.
unbound form are assigned to variables with the nz() function around them. I
am assigning "" to strings and 0 to integers should those fields be empty.
The problem occurs with the three date fields. If I use CR =
nz(.copyright,0), the table gets updated with 30 December 1899, which is what
it should do. However, what I want is an empty date field. Is there any way
to have an empty value for a date field? Assigning a "" to a date field gets
me a type mismatch error. I can trap the empty field with if
isnull(.copyright), but then what value do I give the variable CR. I suppose
the solution is to put the isnull statement in with the recordset updating,
but I wanted to find out if a date field can have an empty value. Thanks for
your help.