RE: How do I debug in the VBA window?
- From: Daniel <Daniel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Nov 2006 05:50:00 -0800
You need to develop an good descriptive error handler for your sub and
functions some brief guidelines can be found at
http://www.cardaconsultants.com/en/msaccess_vba.html under the Error
Handling section.
In you error handler include the source. IE include the sub name such as
frm Switchboard / Form Current. This in an instant will allow you to
identify exactly where the error is comming from.
I personally use the following and it seems to work well
MsgBox "MS Access has generated the following error" & vbCrLf & vbCrLf &
"Error Number: " & _
Err.Number & vbCrLf & "Error Source: Form_Frm Startup / Form_Open" &
vbCrLf & _
"Error Description: " & Err.Description, vbCritical, "An Error has
Occured!"
Hope this helps,
Daniel
"scubadiver" wrote:
Get the following message:.
Syntax error (missing operator) in query expression ' '.
As far as I am aware, it is coming from one particular form but I don't know
exactly where the error is coming from and I am not entirely sure how to
debug.
Can someone advise?
cheers!
--
Watch "9/11 Press for Truth".
- Prev by Date: RE: Prefill
- Next by Date: Re: Remove Read Only
- Previous by thread: RE: Prefill
- Next by thread: RE: How do I debug in the VBA window?
- Index(es):
Relevant Pages
|