?
********
I get a "syntax error(missing operator) '* where roncheck_access.DATE
Between #1/1/99# And #12/31/00#' ". This is in the select statement. The date
values coming in from the date controls are correct as seen in the error.
I'm looking to get records for date> 1/1/99 and date <12/31/00 .What
am I doing wrong? Thanks.
Private Sub db_betw_dates_obj_MouseDown(Button As Integer, Shift As Integer,
X As Single, Y As
Single)
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
strSQL = "select * " _
& "where roncheck_access.DATE Between " _
& "#" & start_date_cal.Value & "# And #" & end_date_cal.Value & "#;"
Set rs = db.OpenRecordset(strSQL)
End Sub
Between #1/1/99# And #12/31/00#' ". This is in the select statement. The date
values coming in from the date controls are correct as seen in the error.
I'm looking to get records for date> 1/1/99 and date <12/31/00 .What
am I doing wrong? Thanks.
Private Sub db_betw_dates_obj_MouseDown(Button As Integer, Shift As Integer,
X As Single, Y As
Single)
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
strSQL = "select * " _
& "where roncheck_access.DATE Between " _
& "#" & start_date_cal.Value & "# And #" & end_date_cal.Value & "#;"
Set rs = db.OpenRecordset(strSQL)
End Sub