R
Rohit Thomas
Hello All,
I have two combo boxes on a form "CmbStartDate"
and "CmbEndDate". I would like to use the result (date
range) from these controls as a filter for a report. I am
trying to use the following code below but there's seems
to be something wrong with my syntax. Can anyone point out
the mistake and correct it...I been working on this for
hours with disappointing results.
Thanks in advance,
Rohit Thomas
stLinkCriteria = stLinkCriteria & _
" [FileDate] = Between #" & _
CDate(Me.CmbStartDate) & "# And #" & _
CDate(Me.CmbEndDate) & "#"
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria
I have two combo boxes on a form "CmbStartDate"
and "CmbEndDate". I would like to use the result (date
range) from these controls as a filter for a report. I am
trying to use the following code below but there's seems
to be something wrong with my syntax. Can anyone point out
the mistake and correct it...I been working on this for
hours with disappointing results.
Thanks in advance,
Rohit Thomas
stLinkCriteria = stLinkCriteria & _
" [FileDate] = Between #" & _
CDate(Me.CmbStartDate) & "# And #" & _
CDate(Me.CmbEndDate) & "#"
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria