Logical ....

User avatar
sal21
PlatinumLounger
Posts: 4370
Joined: 26 Apr 2010, 17:36

Logical ....

Post by sal21 »

L.DAL=#" & Format(Me.DAL.Text, "MM/DD/YYYY") & "# AND L.AL<=#" & Format(Me.AL.Text, "MM/DD/YYYY") & "#

have the same result when i use a Between in quey, or not?

perphs i'm stupid!

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Logical ....

Post by HansV »

No, since you have = in the first part, and since the first uses L.DAL and the second part uses L.AL.
Between works if you have >= and <= conditions on the same field.
Best wishes,
Hans