Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Value for a Date field

Status
Not open for further replies.

rlf1957

IS-IT--Management
Mar 7, 2003
60
0
0
US
Trying to use the 'Date()' function as a default value for a date field in an "Orders" table.

Getting Invalid function. This worked in a similar db I created in Access97, now that we have converted to Access2003 the "Invalid" msg comes up.

Any ideas would be appreciated.
Thanks,

RickF
 
Either Now() or Date() worked for me as a default. Do you have an Input Mask defined for that field?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Check your references:
when in VBE (Alt+F11) menu Tools -> References ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
traingamer - NOw() worked but DATE() doesn't. No input mask defined.

phv - can you explain further the references and what I should be looking for.

Thanks,

RF
 
NOw() worked but DATE() doesn't
OK, so no references issue.
You may try VBA.Date()
Perhaps you have a field/control named date ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top