Form Security

L

lmossolle

Can I put a password on a form that will give access to certain fields? I am
trying to eliminate some additional databases. Please assist!
 
S

scs

I also wanted to know how to do this. So thanks for the info. I got it to
work for my form but I can't get anything but the error message RunTime
Error 13 Type Mismatch when I try and determine the keycode for new
passwords by typing ?KeyCode("TestString") in the immediate window? How do
I determine the KeyCode for a text string like password?
 
D

Douglas J. Steele

Did you copy and paste the code, or did you type it? If you typed it, are
you sure you typed it correctly?

I just copied the KeyCode routine from that webpage, and it worked fine for
me.
 
S

scs

Here is the only part from the web site I don't get?
Do I have to be somewhere special in the code when I do this?

20. To determine what the corresponding KeyCode is for a particular
string, type the following in the Immediate window and then press ENTER:
?KeyCode("TestString")




How do I change the password? Let's say for example I want to change the
password from PASSWORD to PassWord2. I don't understand how to change it at
all.
 
J

Jeff Conrad

Here are some instructions I have posted in the past:
Assuming you have done everything correctly, open the
module in Design View and then go to the immediate window
by hitting CTRL-G on the keyboard.

Type this line of code in the immediate window:

?KeyCode("PassWord2")

Where PassWord2 is the new password you would like
to have. Hit Enter.
A number will be displayed in the window. Write it down.
(it could be a negative number as well)
Close the module.
Open up the table that you created for this and enter that
number into the field called KeyCode (The password mask
will hide the actual number you put in.)
The password should now be changed.
--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conradsystems/accessjunkie.html
http://www.access.qbuilt.com/html/articles.html

in message:
 
S

scs

Thanks got it!

Jeff Conrad said:
Here are some instructions I have posted in the past:

Assuming you have done everything correctly, open the
module in Design View and then go to the immediate window
by hitting CTRL-G on the keyboard.

Type this line of code in the immediate window:

?KeyCode("PassWord2")

Where PassWord2 is the new password you would like
to have. Hit Enter.
A number will be displayed in the window. Write it down.
(it could be a negative number as well)
Close the module.
Open up the table that you created for this and enter that
number into the field called KeyCode (The password mask
will hide the actual number you put in.)
The password should now be changed.

--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conradsystems/accessjunkie.html
http://www.access.qbuilt.com/html/articles.html

in message:
 

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