aqif
Registered User.
- Local time
- Today, 20:42
- Joined
- Jul 9, 2001
- Messages
- 158
Hi 
I have got a very simple problem but tried everything but its giving me very odd result. I am just running a simple query which insert todays date
My code is
Dim strDate As String
strDate = Date
DoCmd.RunSQL "Insert into Table1(TDate) Values (" & strDate & ");"
And to most surprise I get date of last century like
Id TDate
12 31/12/1899 2:24:00 AM
I have even tried like CDate(Date()) but nothing is working
Any ideas about this viered problem?
Cheers!
Aqif
I have got a very simple problem but tried everything but its giving me very odd result. I am just running a simple query which insert todays date
My code is
Dim strDate As String
strDate = Date
DoCmd.RunSQL "Insert into Table1(TDate) Values (" & strDate & ");"
And to most surprise I get date of last century like
Id TDate
12 31/12/1899 2:24:00 AM
I have even tried like CDate(Date()) but nothing is working
Any ideas about this viered problem?
Cheers!
Aqif