H
09-03-2001, 06:42 AM
i only found this page today and it has really helped, got a problem, is it possiable to put passwords on command button, so only select few have access to that form, if so it would really help. Thanks
|
View Full Version : PASSWORD on command button H 09-03-2001, 06:42 AM i only found this page today and it has really helped, got a problem, is it possiable to put passwords on command button, so only select few have access to that form, if so it would really help. Thanks jwindon 09-03-2001, 07:17 AM I will have to assume that an "unauthorized" person has no other means to get to the form within the database. (i.e. in database view) The password can work on the command button, but writing the code to the OnClick to throw up a password form and then check it against the "password" using If-Then code statements. If it matches, open the form, else if - MsgBox "Wrong Password". Go back to other form. GaryC 09-05-2001, 01:06 AM If all users have 'accounts' then you could test to see what person or group is loggged on and allow or deny access that way! e.g. if currentuser() = "Admin" then exit sub if currentuser() = "H" then docmd.openform "myform" end if H 09-05-2001, 02:28 AM THANKS FOR THE ADVICE I FOUND THAT SOMEONE AT AN EARLIER STAGE ASKED THE SAME QUESTION AND I USED THAT INFORMATION AND IT WORKS, MY BOSS IS WELL IMPRESSED THANKS sunilvedula 02-02-2007, 05:33 AM Hi , i just wanted to know where was the path or the code for the password on te command button. i just wanted to see if it varies from what i have written.:) mhartman 02-02-2007, 05:44 AM Hello: Take a look at Candace Tripp's site below. She has an excellent example of how to do this. http://www.candace-tripp.com/pages/access_downloads.aspx Regards Mark sunilvedula 02-03-2007, 08:20 AM Thanq i got the answe for the site u mentioned. It was of great help:) :p ;) |