Date Fields and Access Databases

M

Mike

I have a form that writes to an Access dbase. It contains multiple date
fields. Of these date fields, none, one or even all of them could be filled
in.

I need to have the Data Type, in the dbase, set to Date/Time for formatting.
I have the fields set to NOT be required. (I cannot have the Data Type be
text.)

My problem is that if any of the Date fiels are left blank then I get a
'datatype mismatch error' when writing to the dbase. I am assuming that the
dbase cannot record a blank field as a date type.

But what I do not understand is that if I were to add a record to the dbase
from within Access it will allow the date fields to be left blank.

How can I have the form write to the dbase even if a date field is left
blank?

Thanks for your help,

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top