PC Review


Reply
Thread Tools Rate Thread

ACCESS - set DB password (with VBA)

 
 
=?Utf-8?B?R3JlZw==?=
Guest
Posts: n/a
 
      20th Jun 2005
how i can set DB password with VBA ?
 
Reply With Quote
 
 
 
 
Nick via AccessMonster.com
Guest
Posts: n/a
 
      20th Jun 2005
Greg,

What kind of password are you looking for? If you want one that won't let
someone just open the DB and mess around with the tables, you can create a
small form and use it as the Startup form (Tools -> Startup -> Display form)

On the form's load event, use an input box that asks for a password, then
checks the password against a constant you have set in a module.

If Inputbox("Enter a password") = yourPassword Then
DoCmd.Close acForm, "Form1"
Else
Application.Quit
End If

It's a simple way to go about it and will keep the casual user from messing
with anything. There are a few ways to secure your DB that are much harder
to deal with, unfortunately I can't help you with those.

HTH,
Nick

--
Message posted via http://www.accessmonster.com
 
Reply With Quote
 
=?Utf-8?B?R3JlZw==?=
Guest
Posts: n/a
 
      20th Jun 2005
1.tools->securiry->set DB password (but with vba)

2. Securing VBA code with a password (protection->lock project for viewing)
- also with vba
----------------------------------------
> Greg,
>
> What kind of password are you looking for?

 
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
Access 2007 requires password to open Access 2000 database TrainingGuru Microsoft Access 0 8th Feb 2010 08:16 AM
Access seeks password on exit, but insists my password is not vali MaryMary Microsoft Access 1 19th Jul 2009 09:33 AM
XP randomly asks for password or password doesn't work problem. GET ACCESS TO USER ACCOUNT WITH PASSWORD Dooger@the.dog.house Windows XP General 0 24th Apr 2007 03:53 AM
access password protected win98 share from winxp box with password different from my login barbaraandmichaelyoung@hotmail.com Windows Networking 5 29th Jun 2005 08:36 PM
I am unable to access password required sites w/password Windows XP Internet Explorer 1 12th Aug 2004 04:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:33 PM.