Date() returning wrong date (30/12/99)

Nelmo

Registered User.
Local time
Today, 20:33
Joined
Mar 13, 2001
Messages
17
I have created a form with an 'Add New' button that adds a new record, gives focus to the date field and fills in today's date, i.e. Forms!frmConcrete![Date] = Date(). However the date displayed is always 30/12/99.

Any thoughts as to why? :confused:

Thanks in advance

Neil
 
Check your regional settings and system date, also don't have a field called Date, it's a reserved word in Access
 
Sorted

Thanks both of you

I always call my date fields Record_Date, Order_Date, etc. I was rushing this time.

Never too late to teach an old dog new tricks!!:D

Nelmo
 
Re: Sorted

Nelmo said:
Thanks both of you

I always call my date fields Record_Date, Order_Date, etc. I was rushing this time.

Never too late to teach an old dog new tricks!!:D

Nelmo

Even better with: RecordDate and OrderDate. Try to avoid symbols in your names too. ;)

When you start coding, etc, you find that you will have more syntax problems as fields with underscores or spaces have to be surrounded by square brackets in code and SQL. One word names (one word in the sense that it can be multiple words but just contain spaces) don't.
 

Users who are viewing this thread

Back
Top Bottom