Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 97 question.

Status
Not open for further replies.

pyooi

Programmer
Jan 15, 2003
12
0
0
MY
Hai...

i have a problem, how can i pass the sql condition from my form to a report, so that the report will display base on my condition.

Your help & support, is very usefull for me.
Thank you
Eric
 
Code:
DoCmd.OpenReport "YourReport", acViewPreview, , "[NumericFieldName] = " & NumericValueOrVariable & _
" And [TextField] = '" & TextVariable & "'" & _
" And [DateField] = #" & Format([YourDate],"dd-mmm-yyyy") & "#"

HTH





[pipe]
Daniel Vlas
Systems Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top