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 2007 Reports

Status
Not open for further replies.

a4jack

Technical User
Jun 30, 2008
1
GB
I run a club where different members do different things over the years. I want to print a report of a member, and what he did over the last few years. I have a table with all the members on and another listing all the work done by the members. I am able to use the filter on the work done to arrive at a list for one member's work. I cannot seem to transfer this to a report as the filter is ignored when I try to use the report wizard. any ideas please?
 
You can create a query and base your report on the query, or you can use the wizard to add a command button to print a report. You can then edit the wizard generated code to add a where statement. You should end up with something like:

Code:
    stDocName = "rptMembers"
    DoCmd.OpenReport stDocName, acPreview, , "MemberID=" & Me.txtMemberID

The above code would be suitable on a form that showed members.

You will find more information on OpenReport here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top