View Full Version : Password Macro INTERESTING


mcf747
02-24-2007, 12:46 AM
Hey guy I am a self taught access uses with a huge desier to learn. I am pritty advanced and like to think BIG. Anyway I am creatting a db that will alow people to enter there contact info for a school phone directory. Right now I have a look-up fourm that will find their previous info and bring up apassword box. (so anyone cant alter anyone's info without that persion's password) Through many examples and a lot of reserch I have found that a passoer feild is a simple macro with a condition like this one, [Forms]![password prompt]![Text2]="passsword_here". The problem is, sience I want every one to have their own password I wrote a code like this one, [Forms]![password prompt]![Text2]="[password]![password]" The last part, is a quiere that pulls up a specific students password via. their student number wich is obtained in the first stage were they enter their name. I am more than willing to post the db if anyone wants to see what I have done. Sorry if this post is a little confusing but i am hoping the experts can follow it.

Thanks,
mcf747

DarkAngel
07-09-2007, 07:29 AM
Are you asking for advice or just showing what you've done?

Paul

mcf747
07-10-2007, 07:11 PM
I am looking for help

DarkAngel
07-11-2007, 01:13 AM
So what exactly do you need doing? What bit of your code doesn't work?

Stavi
08-07-2007, 09:19 AM
OK the original post is a bit hard to read but he does say which bit he is struggling with

"[password]![password]"

He wants that bit to be "Password from password table where student number equals selected student number"

I dont know how to add filters to this sort of expression, I am trying to find out now, thats how I found this thread

Stavi
08-07-2007, 02:44 PM
I sorted my problem, I had to learn the DLookup function, I assume the same will work for you.

I wont try and tell you how to do it, I dont understand the syntax properly yet, why is it square brackets there and quote marks there!!! :confused: oh well, at least it works :cool: