Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Check user credentials

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Check user credentials

Igor,

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

--

HTH

Bob

"IgorM" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Check user credentials

"Bob Phillips" 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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Check user credentials

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" 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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Check user credentials

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" napisal w wiadomosci grup
...
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" 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




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Check user credentials

Then you have to query the database, you cannot avoid it.

--

HTH

Bob

"IgorM" wrote in message
...
"Bob Phillips" 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



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Check user credentials

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" napisal w wiadomosci grup
...
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" 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log-In Credentials in a Macro Little Penny[_3_] Excel Programming 1 May 22nd 09 11:33 AM
Excel paste ask user credentials Surjeet Gill Excel Discussion (Misc queries) 0 November 12th 08 04:29 PM
Verifying your credentials for opening content with restricted pe. Arun Excel Discussion (Misc queries) 0 September 6th 06 03:41 PM
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 Excel Discussion (Misc queries) 0 July 20th 06 05:15 PM
Using classes to store user credentials Philippe Pons Excel Programming 3 August 3rd 05 04:22 PM


All times are GMT +1. The time now is 04:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"