Filtering results - simple question

JimmyG

Registered User.
Local time
Today, 00:28
Joined
Aug 3, 2004
Messages
37
I simple question I think...

My database contains a form and a report.
At the moment the report displays the results of every customer in my database. I would like the report to be lauched from a button on my form and filter the results displayed so that it only shows the results of the the current record dislayed only.

I've searched these forums for a similar problem and found a sample database which does what I need but I can't figure out how. (I've attached the database I found so you can see what I mean)

Can anybody help??
 

Attachments

Jimmy,

The vb code below is only filter the selected record displaying in a form.

DoCmd.OpenReport "ReportName", acViewPreview, , "FieldName = " & FieldName

hth,
Michael
 
Can you only filter a report? I need to filter a query based upon pretty much the same criteria (current record) plus some additional stuff
 

Users who are viewing this thread

Back
Top Bottom