PC Review


Reply
Thread Tools Rate Thread

Check user credentials

 
 
IgorM
Guest
Posts: n/a
 
      7th Apr 2010
Hi

I have a database in access mdb file. In Excel I created a userform where
user inputs a username and password. What's the best way to check if the
given credentials are correct - in VBA of course?

Kind regards
IgorM

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      7th Apr 2010
Igor,

Surely, you would just have a user table with passwords on the database, and
check against that?

--

HTH

Bob

"IgorM" <(E-Mail Removed)> wrote in message
news:F867CAE5-F78D-4ED4-972A-(E-Mail Removed)...
> Hi
>
> I have a database in access mdb file. In Excel I created a userform where
> user inputs a username and password. What's the best way to check if the
> given credentials are correct - in VBA of course?
>
> Kind regards
> IgorM



 
Reply With Quote
 
IgorM
Guest
Posts: n/a
 
      7th Apr 2010
"Bob Phillips" <(E-Mail Removed)> wrote:
> Igor,
>
> Surely, you would just have a user table with passwords on the
> database, and
> check against that?
>

I have creared users in the database. So i don't really want to query
any tables but I want to check if a ceartain user with a provided
password exists, ie is created in the mdb file.


--
IgorM
 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      7th Apr 2010
Just try to run a simple select on the database using the credentials
supplied, and check any errors (if generated).

Tim

On Apr 7, 11:39*am, "IgorM" <ig...@live.com> wrote:
> Hi
>
> I have a database in access mdb file. In Excel I created a userform where
> user inputs a username and password. What's the best way to check if the
> given credentials are correct - in VBA of course?
>
> Kind regards
> IgorM


 
Reply With Quote
 
IgorM
Guest
Posts: n/a
 
      8th Apr 2010
I know that this is one of the possibilities. But I was thinking about
something more advanced.So I just want to know is such and such user has
access to database, but I don't want to query any tables in the database to
do this.


Uzytkownik "Tim Williams" <(E-Mail Removed)> napisal w wiadomosci grup
dyskusyjnych:d69fd656-9a4c-41c7-9669-(E-Mail Removed)...
> Just try to run a simple select on the database using the credentials
> supplied, and check any errors (if generated).
>
> Tim
>
> On Apr 7, 11:39 am, "IgorM" <ig...@live.com> wrote:
>> Hi
>>
>> I have a database in access mdb file. In Excel I created a userform where
>> user inputs a username and password. What's the best way to check if the
>> given credentials are correct - in VBA of course?
>>
>> Kind regards
>> IgorM

>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      8th Apr 2010
Then you have to query the database, you cannot avoid it.

--

HTH

Bob

"IgorM" <(E-Mail Removed)> wrote in message
news:129262068292371126.689152igorm-(E-Mail Removed)...
> "Bob Phillips" <(E-Mail Removed)> wrote:
>> Igor,
>>
>> Surely, you would just have a user table with passwords on the
>> database, and
>> check against that?
>>

> I have creared users in the database. So i don't really want to query
> any tables but I want to check if a ceartain user with a provided
> password exists, ie is created in the mdb file.
>
>
> --
> IgorM



 
Reply With Quote
 
fisch4bill
Guest
Posts: n/a
 
      8th Apr 2010
You're going to have to query SOMETHING to find out if the user has access.
It makes more sense to query the database than to duplicate your data
somewhere else, and query that. That's the whole rationale behind relational
databases - reduced data duplication and less maintenance - You'll have to
update TWO databases rather than just one if you don't query the original
database.

"IgorM" wrote:

> I know that this is one of the possibilities. But I was thinking about
> something more advanced.So I just want to know is such and such user has
> access to database, but I don't want to query any tables in the database to
> do this.
>
>
> Uzytkownik "Tim Williams" <(E-Mail Removed)> napisal w wiadomosci grup
> dyskusyjnych:d69fd656-9a4c-41c7-9669-(E-Mail Removed)...
> > Just try to run a simple select on the database using the credentials
> > supplied, and check any errors (if generated).
> >
> > Tim
> >
> > On Apr 7, 11:39 am, "IgorM" <ig...@live.com> wrote:
> >> Hi
> >>
> >> I have a database in access mdb file. In Excel I created a userform where
> >> user inputs a username and password. What's the best way to check if the
> >> given credentials are correct - in VBA of course?
> >>
> >> Kind regards
> >> IgorM

> >

> .
>

 
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
Can a service account be embedded in Workbook so that by default the macros are run with service account credentials and not the user credentials??? Divya Sanam Microsoft Excel Misc 0 20th Jul 2006 05:15 PM
Download user credentials and create a user profile locally via API - possible? Ga Windows XP Security 0 21st Jan 2005 08:55 AM
Download user credentials and create a user profile locally via API - possible? Ga Windows XP Configuration 0 21st Jan 2005 08:55 AM
Download user credentials and create a user profile locally via API - possible? Ga Windows XP Setup 0 21st Jan 2005 08:55 AM
Can i use Welcome screen, but box will check domain credentials? Ian Boyd Windows XP Security 0 11th Sep 2003 03:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 AM.