open an Access report for a specific record using a form button

G

Guest

I have two tables with separate information on customers, linked by a
Customer ID number.

I have a button on the Order Form that opens a report showing a summary of
the details from the other table. This report is based on a Query that asks
for the Customer ID to get the correct customer details.

I would like the button VBA Code to automatically insert the Customer ID so
the report opens with the correct customer's details.
 
R

Rick B

Asked and answered al the time.

Do a search and read the hundreds of previous posts on the topic.
 
R

Rick B

If you use the button wizard to build your button, it will even offer this
as one of the options!
 
R

Rick B

Sorry. you're right. The wizard will do this for another foprm, but not a
report.

For a report, you have to specify the common fields using a where clause in
your vba code.
 
G

Guest

Thanks for coming back so quick.
I'm very new to VBA, and although I think I understand what you means, the
VBA language/Code is what I really need.

Having said that I will experiment.

Thanks again for taking the time to help.

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top