D
Dave Elliott
Is there a module to trap errors for access? Using access 2002 db in 2000
format service pack 3
i.e. replace access standard error message globally?
Make it so debug window cant popup and access standard error message does
not popup!
Example; The report already has code for no data: So I get (2) messages.
DoCmd.SetWarnings False (Used fo Report, no data)
Cancel = -1
MsgBox "There are no records for this request"
DoCmd.SetWarnings True
On Error GoTo Err_Command173_Click (Used for form if Statement exists)
Dte2 = Date
DoCmd.OpenReport "RMothStatmnt", acPreview, "",
"[CustID]=[Forms]![Customers]![CustID]"
Exit_Command173_Click:
Exit Sub
Err_Command173_Click:
MsgBox Err.Description
Resume Exit_Command173_Click
format service pack 3
i.e. replace access standard error message globally?
Make it so debug window cant popup and access standard error message does
not popup!
Example; The report already has code for no data: So I get (2) messages.
DoCmd.SetWarnings False (Used fo Report, no data)
Cancel = -1
MsgBox "There are no records for this request"
DoCmd.SetWarnings True
On Error GoTo Err_Command173_Click (Used for form if Statement exists)
Dte2 = Date
DoCmd.OpenReport "RMothStatmnt", acPreview, "",
"[CustID]=[Forms]![Customers]![CustID]"
Exit_Command173_Click:
Exit Sub
Err_Command173_Click:
MsgBox Err.Description
Resume Exit_Command173_Click