Error detection and error handling in access 2007

Shweta

Well-known Member
Joined
Jun 5, 2011
Messages
514
Hi All,

This is a question that was asked to me in an interview and I couldn't answer it.

The question is say, your manager asked you to prepare a report using access database. While preparing the report you get an error. Now, how to detect what the error is and how to handle it?

What should be the accurate answer for this question?

Please suggest.

Thanks in advance!

Regards,
Shweta
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
This is not the answer you interviewer would expect, but it is what you should do.

Get a copy of the free utility MZTools (vba version). MZ-Tools - Productivity Tools for Visual Studio .NET (C#, VB.NET), Visual Basic and VBA
With the click of a button you can error handling to any procedure. And this utility does much, much more.

And I recommend you add error handling to every procedure -- as a habit.

With 324 posts, I'm surprised you haven't done this already.

If you really are unsure of the concept then here is an article that may help
How do I... Add custom error handling to my Access forms and reports? | TechRepublic

And here is a must read to understand Error Handling MS Access
http://allenbrowne.com/ser-23a.html
 
Last edited:
Upvote 0
Shweta

Does this report involve any code?

If it does and that's where the error is you should start by using VBA's in-built debugging tools to locate the error, find out what caused it and then decide what to do.

One thing to remember - prevention is better than cure.

Also, if you are going to use stuff like On Error Resume Next then use it sparingly - it can actually hide errors
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top