PC Review


Reply
Thread Tools Rate Thread

Custom SQL Server Login Form

 
 
=?Utf-8?B?REJH?=
Guest
Posts: n/a
 
      19th May 2006
I'm controlling the connections to my SQL Server through code. I'm trying to
avoid saving the username and password in code however.

It's easy for me to display my own login form, accept a username and
password, and use those to reconnect my linked tables.

However, I'm trying to figure out how to work around the problem of when a
user enters an improper username and password. The system would then bring
up the standard ODBC username and password dialog. I want to trap this, not
display it and return to my form.

-David
 
Reply With Quote
 
 
 
 
Pieter Wijnen
Guest
Posts: n/a
 
      19th May 2006
Simply try yo open a connection using DAO/ADO with the supplied credentials
If it fails return to your code...

Pieter

PS there is a parameter that will instruct the .dll how to react, the
default (as per normal) is to prompt

HTH

Pieter

"DBG" <(E-Mail Removed)> wrote in message
news:93DE9D80-FDFC-4DC9-B2F3-(E-Mail Removed)...
> I'm controlling the connections to my SQL Server through code. I'm trying
> to
> avoid saving the username and password in code however.
>
> It's easy for me to display my own login form, accept a username and
> password, and use those to reconnect my linked tables.
>
> However, I'm trying to figure out how to work around the problem of when a
> user enters an improper username and password. The system would then
> bring
> up the standard ODBC username and password dialog. I want to trap this,
> not
> display it and return to my form.
>
> -David



 
Reply With Quote
 
=?Utf-8?B?REJH?=
Guest
Posts: n/a
 
      19th May 2006
When then tableDef.connect fails, I think its the ODBC connector which is
passing the error message. Then when I ok that message I get the standard
ODBC username and password prompt.

So I'm not sure I can trap the error. Any idea where info about the .dll is?

-David

"Pieter Wijnen" wrote:

> Simply try yo open a connection using DAO/ADO with the supplied credentials
> If it fails return to your code...
>
> Pieter
>
> PS there is a parameter that will instruct the .dll how to react, the
> default (as per normal) is to prompt
>
> HTH
>
> Pieter
>
> "DBG" <(E-Mail Removed)> wrote in message
> news:93DE9D80-FDFC-4DC9-B2F3-(E-Mail Removed)...
> > I'm controlling the connections to my SQL Server through code. I'm trying
> > to
> > avoid saving the username and password in code however.
> >
> > It's easy for me to display my own login form, accept a username and
> > password, and use those to reconnect my linked tables.
> >
> > However, I'm trying to figure out how to work around the problem of when a
> > user enters an improper username and password. The system would then
> > bring
> > up the standard ODBC username and password dialog. I want to trap this,
> > not
> > display it and return to my form.
> >
> > -David

>
>
>

 
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
Custom login form and permissions for DB Objects =?Utf-8?B?TWFydGlu?= Microsoft Access Security 0 18th Jun 2006 10:45 AM
How to set Custom Theme at Windows XP during login at 2003 Server =?Utf-8?B?U3dhcnVwIE1vZGFr?= Windows XP General 0 16th Apr 2006 12:46 PM
Custom login form in ADP Efisio Pinna Microsoft Access ADP SQL Server 3 16th Jan 2006 07:36 PM
custom login form - i need the user's name as a string garyusenet@myway.com Microsoft Access Security 1 18th Oct 2005 02:04 PM
Login permissions from custom built login form =?Utf-8?B?UEVURVI=?= Microsoft Access Reports 2 26th Apr 2005 02:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.