benniesanders
Programmer
Hi there,
I am getting a missing operator error on the following (this is how the error message reads):
'(([RECEIVED] between #01/01/2002# and #03/01/2002#)ORDER BY [PLANID]'
I am doing a report from a form and the user chooses the date then the sort order. When I comment out the order by code, it works fine so there's something missing there and I can't find it. Any help would be appreciated. Thanks in advance.
Code from form:
strdate = "[RECEIVED] Between #" & Format(BegDate, "mm/dd/yyyy" & "# And #" & Format(EndDate, "mm/dd/yyyy" & "#"
If Me.frameOrder = 1 Then
strOrderby = " ORDER BY [PLANID];"
end if
strAll = strdate & strOrderby
DoCmd.OpenReport ("rptJobReport", View:=acViewPreview, Wherecondition:=strAll
I am getting a missing operator error on the following (this is how the error message reads):
'(([RECEIVED] between #01/01/2002# and #03/01/2002#)ORDER BY [PLANID]'
I am doing a report from a form and the user chooses the date then the sort order. When I comment out the order by code, it works fine so there's something missing there and I can't find it. Any help would be appreciated. Thanks in advance.
Code from form:
strdate = "[RECEIVED] Between #" & Format(BegDate, "mm/dd/yyyy" & "# And #" & Format(EndDate, "mm/dd/yyyy" & "#"
If Me.frameOrder = 1 Then
strOrderby = " ORDER BY [PLANID];"
end if
strAll = strdate & strOrderby
DoCmd.OpenReport ("rptJobReport", View:=acViewPreview, Wherecondition:=strAll