Question : convert date to date number

This is an easy quick 500pts.

We all know that access and excel store dates as a number...right?

I have a date in my access table 15/05/2005.... I need to convert this to the underlying numerical value..

I'm brain dead..so alil help please.

ie 09/05/2005 = 38481  how do I get the second number...

Answer : convert date to date number

Hi ChrisTHall,

CDbl(MyDateField)

Converting a date to a double will get you the full precision, if you are only interested in the date and not the time then convert it to a long

Tim Cottee
Random Solutions  
 
programming4us programming4us