jonathanlim
Programmer
i have this script :
Set qdfBestSellers = dbsCurrent.CreateQueryDef("")
With qdfBestSellers
.Connect = "ODBC;DATABASE=W;DSN=AAA"
.SQL = "SELECT START_TIME FROM table1 " & _
"Where START_TIME =#1/17/2007"
Set rstTopSeller = .OpenRecordset()
rstTopSeller.MoveFirst
End With
the problem is that the START_TIME in table1 is in 1/7/2007 1:00:00PM format. So what can i do to add in the script to only get the date and how do i modified the condition so that i can use date as my selection. Thanks.
Set qdfBestSellers = dbsCurrent.CreateQueryDef("")
With qdfBestSellers
.Connect = "ODBC;DATABASE=W;DSN=AAA"
.SQL = "SELECT START_TIME FROM table1 " & _
"Where START_TIME =#1/17/2007"
Set rstTopSeller = .OpenRecordset()
rstTopSeller.MoveFirst
End With
the problem is that the START_TIME in table1 is in 1/7/2007 1:00:00PM format. So what can i do to add in the script to only get the date and how do i modified the condition so that i can use date as my selection. Thanks.