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

Problem with OpenReport command

Status
Not open for further replies.

tprscott

Programmer
Jul 17, 2006
8
US
I currently have three tables. One is the main table called defects that has a tracking number. I have another table called closeout reference that has a tracking number (which ties it do the main table) and a action number ( which ties it to my third table). I then have a third table called closeout action that has the action number and the actual action names.

With that in mind i have a query that I am using to create a report which prints all of the action names where there is a reference to that action in the second table. I then have a button on one of my forms that I want to press that will call the openReport command. I pass the report a where the tracking number equal a value from the form field. When I do this, I recieve a box that asks me to enter a tracking number. When I do this the correct results are printed. Why wont it just pass the tracking number? If this is confusing let me know. Thanks
 
Any chance you could post the code launching the report and the SQL code of the underlaying query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top