PC Review


Reply
Thread Tools Rate Thread

How can I capture an error as the database opens?

 
 
Jeff Stroope
Guest
Posts: n/a
 
      29th May 2008
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?
--
Thanks,

Jeff
 
Reply With Quote
 
 
 
 
Keith Wilby
Guest
Posts: n/a
 
      30th May 2008
"Jeff Stroope" <(E-Mail Removed)> wrote in message
news:B9FCC5A8-946C-4E6D-8231-(E-Mail Removed)...
> 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

 
Reply With Quote
 
david
Guest
Posts: n/a
 
      30th May 2008
For a bound form, in the form "on error" event.

(david)

"Jeff Stroope" <(E-Mail Removed)> wrote in message
news:B9FCC5A8-946C-4E6D-8231-(E-Mail Removed)...
> 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?
> --
> Thanks,
>
> Jeff



 
Reply With Quote
 
Jeff Stroope
Guest
Posts: n/a
 
      30th May 2008
Thanks Keith - I'll try that.
--
Thanks,

Jeff


"Keith Wilby" wrote:

> "Jeff Stroope" <(E-Mail Removed)> wrote in message
> news:B9FCC5A8-946C-4E6D-8231-(E-Mail Removed)...
> > 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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: capture keypress on database open Tom van Stiphout Microsoft Access Forms 0 8th Jul 2009 02:20 PM
RE: capture keypress on database open Klatuu Microsoft Access Forms 0 8th Jul 2009 02:20 PM
access opens database first time, close and retry database won't o =?Utf-8?B?Y29tcHVzZXIxMA==?= Microsoft Access 2 30th Jan 2007 04:19 PM
How to capture Database Errors Michael Microsoft Access VBA Modules 0 30th Mar 2004 05:34 PM
Capture Database in use message Crystal Microsoft Access 0 13th Jan 2004 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 PM.