How can I capture an error as the database opens?

J

Jeff Stroope

Hello,

I have an Access 2003 database that has a linked SQL Server table. Some of
the database users don't have select permissions on the SQL Server table so
the database throws error #3146 ODBC--call failed when the database opens.
I'd like to just handle that error to eliminate the user getting the error
message. Where do I put the code to catch that error?
 
K

Keith Wilby

Jeff Stroope said:
Hello,

I have an Access 2003 database that has a linked SQL Server table. Some
of
the database users don't have select permissions on the SQL Server table
so
the database throws error #3146 ODBC--call failed when the database opens.
I'd like to just handle that error to eliminate the user getting the error
message. Where do I put the code to catch that error?

I assume you have a form set to open in the start-up options. Have you
tried trapping the error in the form's Open event? You can cancel the Open
event if the error is trapped.

Keith.
www.keithwilby.com
 
J

Jeff Stroope

Thanks Keith - I'll try that.
--
Thanks,

Jeff


Keith Wilby said:
I assume you have a form set to open in the start-up options. Have you
tried trapping the error in the form's Open event? You can cancel the Open
event if the error is trapped.

Keith.
www.keithwilby.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top