G
Guest
I am using a combo box to select a company name from a table, then using that name to select the company detail from a query. This Query is then the basis for a report. I have modified the 'Run Query' coding of a command button to open the report, then close the query...which is where my problems start!!!
Dim stDocName As Strin
Dim ReportName As Strin
ReportName = "Equipment_Manufacturer Query
stDocName = "Equipment_Manufacturer Query
DoCmd.OpenQuery stDocName, acNormal, acEdi
DoCmd.OpenReport ReportName, acViewPrevie
DoCmd.RunMacro CloseQuery.CloseQuery, 0,
The macro 'CloseQuery' is part of a group. I keep getting "Object Required" as a pop-up?????why..
My experience of vba is....well....about -10 on the scale
Dim stDocName As Strin
Dim ReportName As Strin
ReportName = "Equipment_Manufacturer Query
stDocName = "Equipment_Manufacturer Query
DoCmd.OpenQuery stDocName, acNormal, acEdi
DoCmd.OpenReport ReportName, acViewPrevie
DoCmd.RunMacro CloseQuery.CloseQuery, 0,
The macro 'CloseQuery' is part of a group. I keep getting "Object Required" as a pop-up?????why..
My experience of vba is....well....about -10 on the scale