Customize Logon Screen

C

CompDude

If possible, looking for a way to customize the logn screen in an Access 2000 app. Any suggestions would much appreciated

Thxs.
 
J

Jeff Conrad

Not completely necessary about creating your own schema.

Here's what I did:

1. Create your own login form in a second unsecured database. Since it is unsecured
there will be no login prompt. You create a single pop-up, modal form in this database
and set it to be the Startup form.

2. They fill in their User Name and Password in the appropriate text boxes and hit an OK
button. Code behind the OK button opens up the secured database, passes in the
user name and password from the text boxes, and then closes the unsecured database.
To the user they never even know they are working with two databases for a brief second!

It works very nicely, but you have to realize that if the user name/password combination
entered is invalid, the user will still be presented with the default Access login form for the
secured database. But, it's really not that big of a deal to me.

This setup solved several problems for me:
- I needed a way to log into not only the main program, but a sample database as well.
A simple checkbox on my custom login screen accomplishes that.
- I needed an easy way to back up the BE tables (this is single workstation setup).
A simple button on the form copies the whole BE to a folder and date stamps it.
Since they're not accessing the tables from this unsecured database I don't have to worry
about corruption. Even if by chance the tables are being accessed my error handling
stops the process and flashes up a nice message box.
- I wanted to have a EULA form pop up first and have them agree to it before accessing
the main database program.

It works really, really nice for me.
 
T

TC

I assume the code behind the OK button uses the /wrkgrp command-line flag to
select the secured workgroup?

TC
 
J

Jeff Conrad

Yep, just like you say.
Works very nice.
Did you want to see the code (it's pretty basic stuff)?
 
T

TC

Thanks Jeff. I don't need the code. I just wanted to ensure that I
understood your method correctly.

Cheers :)
TC
 
J

Jeff Conrad

You're welcome, glad to help.
Have fun with it!

--
Jeff Conrad
Access Junkie
Bend, Oregon

CompDude said:
Jeff, Lynn -

Thanks for the answers and suggestions. Jeff, I was more or less thinking
the same way you did it. Nice to hear it is working for you. I'll give it a
try.
 

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