Putting date into form as default value isn't working

J

jokobe

I'm trying this:

Forms!tblservices!servicedatum.DefaultValue = Date

Access keeps deleting the brackets () and even worse: it is not working.
Within the field servicedatum "#Name?" is shown, also in the property box
for the field the actual date is shown as the default value.

Any helpful hints? And anyhow, thanks in advance..

jokobe
 
R

Rick Brandt

I'm trying this:

Forms!tblservices!servicedatum.DefaultValue = Date

Access keeps deleting the brackets () and even worse: it is not working.
Within the field servicedatum "#Name?" is shown, also in the property
box for the field the actual date is shown as the default value.

Any helpful hints? And anyhow, thanks in advance..

jokobe

DefaultValue is a string. You need quotes around it.

Forms!tblservices!servicedatum.DefaultValue = "Date()"
 

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