Hi Experts,
My VB code for getting data from Access database:
myDate = Date()
strSQL = "Select * From Table1 Where [Date] = #" & myDate & "#"
Sometimes this got problem because of the date/time format in Access: mm/dd/yyyy or dd/mm/yyyy.
How to make sure the code is always correct no matter what date/time format is in Access?
Thank you in advance.
My VB code for getting data from Access database:
myDate = Date()
strSQL = "Select * From Table1 Where [Date] = #" & myDate & "#"
Sometimes this got problem because of the date/time format in Access: mm/dd/yyyy or dd/mm/yyyy.
How to make sure the code is always correct no matter what date/time format is in Access?
Thank you in advance.