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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass parameters to query and then print report

Status
Not open for further replies.

wendywam

Programmer
Jun 21, 2004
15
ZA
Hi
I am developing a vb5 application and microsoft access 97 is my database. I have to print a report based on the parameters that i enter on the vb form (textbox). i have a query in access db which i have to pass two parameters to in order to display results. How do i call that access query in my vb program and then print a report.I dont want the popup parameter box to come up.
I can do this with vb5 and sql 6.5 but not with vb5 and access 97. please help.
 
Hi Ken Reay
I tried what you suggested and it does not work.
Any ideas or suggestions guys?
 
How about creating a single record table in your ACCESS database and updating a couple of parameter fields of the correct type with your vb forms input. Then the ACCESS query can include that table in its structure and use the parameter fields in its criteria expression.

Just an idea.

[COLOR=006633]Bob Scriver[/color]
MIState1.gif
[COLOR=white 006633]MSU Spartan[/color]
 
Its a good idea Bob Scriver.
I will use it.
Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top