Form Controls

  • Thread starter Thread starter Denise
  • Start date Start date
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.
 
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
 
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.
 
Back
Top