I'm not getting the right syntax and I need help. gstrDate is a global
variable.
=================================
strSQL = gstrDate & " Between #" & Me.BeginningDate & "# And #" &
Me.EndingDate & "# And "
strSQL = gstrDate & " Between " & Me.BeginningDate & " And " &
Me.EndingDate & " And "
=================================
Thanks,
PC
Ofer - 11 May 2005 20:46 GMT
Try that
strSQL = "(" & gstrDate & " Between #" & Me.BeginningDate & "# And #" &
Me.EndingDate & "#) And ("
strSQL = gstrDate & " Between #" & Me.BeginningDate & "# And #" &
Me.EndingDate & "#)"
> I'm not getting the right syntax and I need help. gstrDate is a global
> variable.
[quoted text clipped - 6 lines]
> Thanks,
> PC