advanced microsoft access training london - error trapping
Request a callback

We'll call during UK business hours

Name:
Number:
0207 987 3777

Forum home » Delegate support and help forum » Microsoft Access Training and help » advanced microsoft access training london - Error Trapping

advanced microsoft access training london - Error Trapping

resolvedResolved · Low Priority · Version Standard

Mon 11 Dec 2006, 09:20 replyReply Delegate Dave said...

Dave has attended:
Access VBA course

Error Trapping

I have created an Access database employing only tables, queries and forms (no modules), and wish to deploy it to a user who is using only the MS Access Runtime. Experience has shown that I need to incorporate error trapping.
Does this mean that each form needs to be opened from within a module, rather than directly from the Switchboard, as I have it at the moment?

For upcoming training course dates see: Pricing & availability

Tue 12 Dec 2006, 13:31 replyReply Trainer David said...

RE: Error Trapping

Hi Dave

Yes you definately need to include error trapping as otherwise the user will just get a really horrible error message given too them by access and then the application will close.

As far as opening everything from within a modules goes, I think that you should be fine just opening everything from switchboards.

Hope thins helps

David

Tue 12 Dec 2006, 14:48 replyReply Delegate Dave said...

RE: Error Trapping

My question was more to do with how to include error trapping.
I can see that I could do it by opening the form from within a module that included an error block, but your answer implies that I can implement error trapping without doing that.

Wed 13 Dec 2006, 11:42 replyReply Trainer David said...

RE: Error Trapping

Hi Dave

What I meant by this was that you should be able to code all of the error trapping directly into the VBA. You should place a statement within your could so that anywhere that an error could occur, there is a statement to catch the error, and then call an error handler. An example is shown below

Sub MystuffHere()
On Error GoTo ErrorHandler
My statements here
Exit Sub
ErrorHandler:
My error handling statements go here
End Sub


I hope this helps, if not get back to me

David

 

Access tip:

Switchboard Startup

An option when you open your Access database that contains all of you tables, forms and queries is only the switchboard is displayed.

To achieve this, select Tools click on Startup. On the right hand side of the Startup screen you are able to select which form you want to open when you open you Access Database. Once you have selected this, there is a check box just below that says "Display Database Window", you need to uncheck this option. Then click ok.

Then when you close you Access database and re open it, the database should open with just the switchboard being shown


View all Access hints and tips



MS Project training
Course rating:
4.8 stars - based on 5149 reviews
Microsoft Certified Partner Institute of Leadership and Management - Certified Courses Learning and Performance Institute - Accredited Training Provider Security Seal verified by visa, mastercard securecard

Connect with us: Facebook · Twitter · Google+ · LinkedIn · Pinterest