S
Sandy
Hello -
I have an event procedure that runs several queries in a row. SOme of these
are make table queries, and the final command is to open a report?
How do I disable the tables opening up as I run the query? acView does not
show a "hide" option ...
Dim stDocName As String
stDocName = "BestResults-TestSummary"
DoCmd.SetWarnings False 'disable warnings
DoCmd.OpenQuery "Q_BestResults-Sub1" ' make table query
DoCmd.OpenQuery "Q_BestResults-Sub2" ' uses table in Sub1
DoCmd.OpenQuery "Q_BestResultsSub3a"
DoCmd.OpenQuery "Q_BestResultsSub3b" ' make table query
DoCmd.OpenQuery "Q_BestResultsSub4a"
DoCmd.OpenQuery "Q_BestResultsSub4b" ' append query
DoCmd.OpenQuery "Q_BestResultsSub5a"
DoCmd.OpenQuery "Q_BestResultsSub5b" ' append query
DoCmd.SetWarnings True 'enable warnings
DoCmd.OpenReport stDocName, acPreview
The report is based on a query that uses the table form Sub 1 and the final
table in Sub 5b
many thanks
sandy
I have an event procedure that runs several queries in a row. SOme of these
are make table queries, and the final command is to open a report?
How do I disable the tables opening up as I run the query? acView does not
show a "hide" option ...
Dim stDocName As String
stDocName = "BestResults-TestSummary"
DoCmd.SetWarnings False 'disable warnings
DoCmd.OpenQuery "Q_BestResults-Sub1" ' make table query
DoCmd.OpenQuery "Q_BestResults-Sub2" ' uses table in Sub1
DoCmd.OpenQuery "Q_BestResultsSub3a"
DoCmd.OpenQuery "Q_BestResultsSub3b" ' make table query
DoCmd.OpenQuery "Q_BestResultsSub4a"
DoCmd.OpenQuery "Q_BestResultsSub4b" ' append query
DoCmd.OpenQuery "Q_BestResultsSub5a"
DoCmd.OpenQuery "Q_BestResultsSub5b" ' append query
DoCmd.SetWarnings True 'enable warnings
DoCmd.OpenReport stDocName, acPreview
The report is based on a query that uses the table form Sub 1 and the final
table in Sub 5b
many thanks
sandy