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

Form with Subform

Status
Not open for further replies.

jnw

Technical User
Dec 28, 2000
2
US
I have a form with a subform which contains records. I have a text box on the form that equals one of the records. When I choose a record it shows up on the form correctly. But when I print the form, it always prints the first record, even if I have selected the second or third record. Any ideas?

Julia
 
That is why reports are so much better than printing forms. Create a query that a report is built from. In the query, put criteria that refers to the form you have open.

For example, if I wanted the order that is showing on my form (frmOrder) to print out, I simply put the following in the criteria of the OrderNo field in the query:

[Forms]![frmOrders]![OrderNo]

Then build a report based on this query. When the report prints, it will print the record that is showing on the Order Form. Jim Lunde
compugeeks@hotmail.com
Custom Application Development
 
Thank you, I will try it!

Julia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top