J
Jill
In one of my macros, I put the Set Warnings command to false, and all of the
dialog boxes are still coming up. Can anyone see what I'm doing wrong here?
Function Update_tbl_Master1()
DoCmd.SetWarnings False
DoCmd.DeleteObject acTable, "tbl_Master"
DoCmd.CopyObject "", "tbl_Master", acTable, "tbl_Master_Blank"
DoCmd.RunMacro "Import Holiday07 Master Spreadsheets", , ""
DoCmd.OpenQuery "qry_Add tbl_Master_Holiday07 to tbl_Master",
acViewNormal, acEdit
DoCmd.OpenQuery "qry_Add Holiday07 Source to tbl_Master", acViewNormal,
acEdit
DoCmd.RunMacro "Import Spring08 Master Spreadsheets", , ""
DoCmd.OpenQuery "qry_Add tbl_Master_Spring08 to tbl_Master",
acViewNormal, acEdit
DoCmd.OpenQuery "qry_Add Spring08 Source to tbl_Master", acViewNormal,
acEdit
DoCmd.SetWarnings True
End Function
dialog boxes are still coming up. Can anyone see what I'm doing wrong here?
Function Update_tbl_Master1()
DoCmd.SetWarnings False
DoCmd.DeleteObject acTable, "tbl_Master"
DoCmd.CopyObject "", "tbl_Master", acTable, "tbl_Master_Blank"
DoCmd.RunMacro "Import Holiday07 Master Spreadsheets", , ""
DoCmd.OpenQuery "qry_Add tbl_Master_Holiday07 to tbl_Master",
acViewNormal, acEdit
DoCmd.OpenQuery "qry_Add Holiday07 Source to tbl_Master", acViewNormal,
acEdit
DoCmd.RunMacro "Import Spring08 Master Spreadsheets", , ""
DoCmd.OpenQuery "qry_Add tbl_Master_Spring08 to tbl_Master",
acViewNormal, acEdit
DoCmd.OpenQuery "qry_Add Spring08 Source to tbl_Master", acViewNormal,
acEdit
DoCmd.SetWarnings True
End Function