Form Controls

D

Denise

I have a form that I use as a switchboard to print off forms.

How do I select a company name, then after I select the name have it print a
report or form? Can't figure out how it all works together.

Select Company from a combo box

After select, what do you use to get the report to open for that Company?

I'm confused.
 
J

Jeanette Cunningham

Here's an example

Dim strWhere As String

strWhere = "IssueID = " & Me.[NameOfCombo]ID
'Debug.Print strWhere

DoCmd.OpenReport "NameOfReport", acPreview, , strWhere



Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
G

golfinray

Start by looking at the Where condition for the openreport command.
Normally, you set the filter for the report in the Where condition then use
the openreport to view the data. If you will search on here, you should find
many examples. Search for filter report.
 

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

Similar Threads


Top