If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Form Controls
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. -- Denise B. |
#2
|
|||
|
|||
Form Controls
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 "Denise" wrote in message ... 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. -- Denise B. |
#3
|
|||
|
|||
Form Controls
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. -- Milton Purdy ACCESS State of Arkansas "Denise" wrote: 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. -- Denise B. |
Thread Tools | |
Display Modes | |
|
|