hiya
Dates are driving me insane!
I want to search between two dates that the user enters on a form. I then want to save the results from this query into a table, including one of the dates entered.
My code is as follows:
This gives the correct dates in the query created, however the date it enters into the table is 30/12/1899
Can anyone help?
Lou
Dates are driving me insane!
I want to search between two dates that the user enters on a form. I then want to save the results from this query into a table, including one of the dates entered.
My code is as follows:
Code:
Dim dtWkEnd as date
dtWkEnd = me.txtTo
"INSERT INTO tblHighRpt (TotSeen, WkEnd)
SELECT Count(tVisits.ClientID) AS TotSeen, " & dtWkEnd & " "
"FROM tVisits " & _
"WHERE (tVisits.Date) Between #" & (Me.txtFrom) & "# And #" & (Me.txtTo) & "#));"
This gives the correct dates in the query created, however the date it enters into the table is 30/12/1899
Can anyone help?
Lou