selcting report criteria

A

alan

I am using the followinc code to produce a report but need
to set the criteria to select entries between two dates
which are Dim StrtDate and Dim EndDate earlier in the
code. How should these be descibed in the last section of
this line?

DoCmd.OpenReport "rptDeal Review",
acViewPreview, "qryDeals", "[Date] =" ????????
 
G

Gary Miller

Try...

"[Date] Between #" & StrtDate & "# And #" & EndDate & "#"

Gary Miller
Sisters, OR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top