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

ACK! Simple Report Problem

Status
Not open for further replies.

SShefer

Technical User
Aug 7, 2001
20
US
I have a report. I have my data, but when I view the report I can see everything. How can I narrow it down to one criteria.

EX. Customers. View report and see them all. I just want to see one.

How do I do it?

Thanks!
 
Use DAO to create a temporary recordset in VBA. Do a .MoveFirst. Set the control or section recordsource property (in code) to the first record:

rstRecordSet.MoveFirst
TextBox.Text = rst.FieldName
 
Is there a query for the report?

You could go into the report properties and use the query to look up the report for just one customer.

You would enter the name of the customer in the customer field and run the report.

Just remember if you save it, you'll need to change the query back or the report will be incorrect for the next use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top