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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically insert date without / 1

Status
Not open for further replies.

albyh

Technical User
May 10, 2003
32
GB
I need my table to automatically insert todays date in the follwing format.

130503

Any help would be GREATLY appreciated.

Alban
 
If you want to have the date in the format ddmmyy you will need to set the data type to text and put

=Format(Date(),"ddmmyy")

in the default value for the field in design view for the table.

If you set the field to a Date/Time data type the closest you will get is dd/mm/yyyy (short date)

and use

=Format(Date(),"dd mm yy")

in the default value.



There are two ways to write error-free programs; only the third one works.
 
This was exactly what i was looking for

Thanks a lot

Alban
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top