@hlmasoud Check your code is referencing the text boxes username and password (and that you've named the text boxes from text1, text2 etc - and not changed the label instead)
I would like to point out and make it very clear that Microsoft Access CAN NOT be made SECURE in the manner as illustrated. What this is useful for is segregated users menus. Also an Access database SHOULD NEVER be used to store sensitive data, if you want to store sensitive data, you are reminded of the legislation on doing so and you should consult the data commissioner on the data you are looking to store to ensure you comply with the law.
@Firchild. You have to make it known that a username and password is not secure in Access, the method you suggest is not secure, its easily compromised. So understanding risks and why code is risky or wares and the pit falls. Login in is useful for identifying users inserting data and filtering in some scenarios.
Nice vids BTW, you get to the point and no "Oh I have to mention at this point that.. or I think its important at this point to.." type comments, you know rhymes with Bull & Hooks..
@thepvporg Hate to be a stick in the mud.. But this is designed to show code. At no point do I suggest that this is an uncircumventable method.. If I were to attach caveats to my videos, they'd be a lot longer and less focused.. By all means, post a video of your own highlighting the implications of storing data, and the focus of the Data Protection Act, and I'll post a link to it at the end of this video.
@Firchild, No but the fact that your tutorial is a password and username interface, implies that you can Secure the database when you can't. The most robust applications made using Access are easily broken. Even hiding the password table won't help. I know this because I wrote a background authentication module for VBA to passively track users by the machine name and user login name from the computer system via an API. No login meant no access, as user has to exist on a network (Authenticated)
@thepvporg in terms of my ICT A2 coursework this is perfect and exactly what i was looking for.
although you do have a fair point. but i think this video is targeted for those who are in a situation like me, or small businesses where sensitive data is not stored.
I had one problem when it came to the login button, the field names were correct and so was the code but when i pressed login (your validate button) nothing happened.
My solution was to select "enable this content" in the security warning that is visible under the menu bar when you first open up the database.It works!
Hello wonder if you can help me... i think your video is great, i've follwed all the steps and im at the same stage. Just wondering if you know how to make it so that when the user types the password.. then it is hidden e.g. ***** ? would be great if you could help. Thanks in advance.
nice vid...i have a problem in my log in form...i want that when the user types the username and password incorrectly 3 times, the program ends. can anyone help me?
Private Sub cmdLogin_Click() intLogonAttempts = intLogonAttempts + 1 If intLogonAttempts > 3 Then MsgBox "You do not have access to this database. Please contact your system administrator.", vbCritical, "Restricted Access!" Application.Quit End If
I'm getting a compile error "method or data member not found" in access 2007 with this code .SetFocus is highlighted in VB. I'm trying to create a log in screen without having to create a table.
is it possible to create a register button where once you register a username and password it will automatically appear in the code and then accept it??
OK, after another hour of fiddling with Access 2007, I found out what the problem was. In "Trust Center Settings" I selected "Never show information about blocked content" which for some reason disabled the code for login to work properly. Now that I put it back to show message about blocked content, it is working as it should.
@JeleJov THANK YOU! Now this is what I've been talking about, you're the kind of viewer I like! Rather than whine about a problem, you've gone off, found a solution and posted it. Thank you to you and all of your ilk! I REALLY appreciate your input!
Nice tutorial dude. But, I keep on getting this error Run-time error '424': Object required where do you get that DoCmd in this code DoCmd.Close DoCmd.OpenForm "F_Switchboard" in your validate button I think that's where my problem is I though that was the Password Form? and your password form i think is still not saved at that point 3:16 Thanks for your reply,
just a question. whats the point of a login form when the form you are login in to view is still accessible under tables. how do you get rid of the form you made a login form for. so that you have to log in to view it.? if that makes sense
is it possible to have this programming: when you open your database, the opening will be a presentation that says the login and password and then welcome to write your databases???? i want to open my file and when i say yes to open my file, i want nothing in the access desktop than only my form login.. is it possible?
thank you so much! I was stuck on getting this right for a while, the thing I had wrong was i didn't change the text box name from unbound to "username" and "password".. it all works now. thank you!
bizzyb2068, if you are familiar with the DAO object in VBA, then what you can do is create a table that stores your Usernames and passwords. Make sure that your password field's input mask is set to password. Then use VBA search the table for the username and if it finds a match then have it check to see if the password field matches password text box. I have used this method a few times and it works beautifully. Of course that is the plain way, I use additional methods to make it more secure.
Dunno, never tried running access on an iMac, why don't you try it and let me know? If you're running Windows/Office thru Parallels or Boot camp then yes, it'll work
"This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For example, if the OnOpen property of a form is set to =[Field], this error occurs because Access expects a macro or event name to run when the event is fired."
OR.. New info.. A new instance of access has corrupted a previous one (I installed 2010 recently, and a lot of the functionality of 2003 has been ripped out)
Thanks for your videos! I did manage to learn quite alot from your videos.Thanks again! But is it possible that u touch a bit on the Option group function in Access. Coz right now, im kinda stuck at that function. Lets take an example, I have 2 options 'Yes' and 'No'. When I click on the'Yes' option, the word 'Yes' does not appear in the table in Access. What should i do?
Hi Firchild. I am using Access 2007 and the code you provided does not seem to be working. I followed all your instructions and yet everytime I click on "Validate" nothing happens. What should I do?
Great tutorial 1 question how would i do multiple users? like sallys name and specific password. Joes name specific password etc. Also i would like to use a listbox to chose a name from and type password can u help?
i am a new user to the world of Access, you made my life soo easiy to learn access.. tons of thanks..my friend, very nice videos with great pase... i love them.. you rock
OMG thanks needed it for my computing coursework
BrunoMarsCrazyy 1 week ago
I'm sorry - I finally figured it out..
THANKS!!!
baysharks21 2 weeks ago
YOU ARE AWESOME!!!!!, SAVED MY LIFE!!!!! (I had to do assignment)
mrosamabinobama 2 months ago
It works well i follow using 2007! Gr8 man!
wellhrd 2 months ago
1 word 'COOL'
Peeboontheng 4 months ago
@Peeboontheng two words 4 me.....thumbs up! :)
hi2udemon 3 months ago
Ive done exactly wat is said but when i press the button nothing happens... plz help asap
ConswaylahBear 5 months ago
@ConswaylahBear Read the feedback to the previous, identical comment..
Firchild 5 months ago
i did it as told but nothing happened when i press on the button.
please help
hlmasoud 5 months ago
@hlmasoud Check your code is referencing the text boxes username and password (and that you've named the text boxes from text1, text2 etc - and not changed the label instead)
Firchild 5 months ago
@hlmasoud
found the error. i had the security warning disabled.
1000 thanks for this vedio.
cheers
hlmasoud 5 months ago
@hlmasoud No worries, that security warning is a pain! It does stop nasties though..
Firchild 5 months ago
hi firchild thx for ur video! i follow all ur steps but whn i click validate, ntg happens. Thanks for ur helping hand!!!!!!!
shwaen 6 months ago
caro amigo, agradeço sua aula. Foi muito interessate!
Dear friend, thank you for your lesson. It was very interesting!
André - São Paulo - Brasil
AndreMartins2010 7 months ago
my some problems solves thank a lot
subhanibutt786 7 months ago
Very Helpful, Thanks :)
frankkdonald 8 months ago
i try to do this and copied the code on to my data base but i keep getting a error message 424 on my code it refers to the username.setfocus
any helps
gr1zzley 9 months ago
@gr1zzley You haven't named the box that accepts the username as "username"
Firchild 9 months ago
I would like to point out and make it very clear that Microsoft Access CAN NOT be made SECURE in the manner as illustrated. What this is useful for is segregated users menus. Also an Access database SHOULD NEVER be used to store sensitive data, if you want to store sensitive data, you are reminded of the legislation on doing so and you should consult the data commissioner on the data you are looking to store to ensure you comply with the law.
thepvporg 10 months ago
@thepvporg At what point do I suggest that Access is used to hold sensitive data? This is designed for schoolkids to produce a project.
Firchild 10 months ago
@Firchild. You have to make it known that a username and password is not secure in Access, the method you suggest is not secure, its easily compromised. So understanding risks and why code is risky or wares and the pit falls. Login in is useful for identifying users inserting data and filtering in some scenarios.
Nice vids BTW, you get to the point and no "Oh I have to mention at this point that.. or I think its important at this point to.." type comments, you know rhymes with Bull & Hooks..
thepvporg 10 months ago
@thepvporg Hate to be a stick in the mud.. But this is designed to show code. At no point do I suggest that this is an uncircumventable method.. If I were to attach caveats to my videos, they'd be a lot longer and less focused.. By all means, post a video of your own highlighting the implications of storing data, and the focus of the Data Protection Act, and I'll post a link to it at the end of this video.
Firchild 10 months ago
@Firchild, No but the fact that your tutorial is a password and username interface, implies that you can Secure the database when you can't. The most robust applications made using Access are easily broken. Even hiding the password table won't help. I know this because I wrote a background authentication module for VBA to passively track users by the machine name and user login name from the computer system via an API. No login meant no access, as user has to exist on a network (Authenticated)
thepvporg 10 months ago
@thepvporg in terms of my ICT A2 coursework this is perfect and exactly what i was looking for.
although you do have a fair point. but i think this video is targeted for those who are in a situation like me, or small businesses where sensitive data is not stored.
torosyan 9 months ago
Hi Firchild! Your videos are just great.
I had one problem when it came to the login button, the field names were correct and so was the code but when i pressed login (your validate button) nothing happened.
My solution was to select "enable this content" in the security warning that is visible under the menu bar when you first open up the database.It works!
Thanks!
Ejo85 10 months ago
Hello wonder if you can help me... i think your video is great, i've follwed all the steps and im at the same stage. Just wondering if you know how to make it so that when the user types the password.. then it is hidden e.g. ***** ? would be great if you could help. Thanks in advance.
JT09AFC 10 months ago
nice vid...i have a problem in my log in form...i want that when the user types the username and password incorrectly 3 times, the program ends. can anyone help me?
RLiz08 11 months ago
@RLiz08 try this..
Option Compare Database
Private intLogonAttempts As Integer
Private Sub cmdLogin_Click() intLogonAttempts = intLogonAttempts + 1 If intLogonAttempts > 3 Then MsgBox "You do not have access to this database. Please contact your system administrator.", vbCritical, "Restricted Access!" Application.Quit End If
End Sub
hope this works
theanon111 10 months ago
Hi. I have a problem when I'm running Validate it gives a message stating Expression entered in properties field causes error: Expected: identifier
Could anybody help me ?
so2murad 11 months ago
I'm getting a compile error "method or data member not found" in access 2007 with this code .SetFocus is highlighted in VB. I'm trying to create a log in screen without having to create a table.
MrShoNuff71 11 months ago
is it possible to create a register button where once you register a username and password it will automatically appear in the code and then accept it??
fe207zman3 1 year ago
OK, after another hour of fiddling with Access 2007, I found out what the problem was. In "Trust Center Settings" I selected "Never show information about blocked content" which for some reason disabled the code for login to work properly. Now that I put it back to show message about blocked content, it is working as it should.
JeleJov 1 year ago
@JeleJov THANK YOU! Now this is what I've been talking about, you're the kind of viewer I like! Rather than whine about a problem, you've gone off, found a solution and posted it. Thank you to you and all of your ilk! I REALLY appreciate your input!
Firchild 1 year ago 2
@JeleJov Thanks you so much. I stuck in this problem in hours too.
huytranasd 1 year ago
Hey da iawn ti Diolch
-good job, thx for explainin so simply.
WiresAnSteel 1 year ago
narutarddd04 1 year ago
just a question. whats the point of a login form when the form you are login in to view is still accessible under tables. how do you get rid of the form you made a login form for. so that you have to log in to view it.? if that makes sense
PIZZLEPIZZLEPOWPOW 1 year ago
@PIZZLEPIZZLEPOWPOW If you look at the videos that I did that hid the forms, it would make sense, these videos are part of a series
Firchild 1 year ago
I remember doing this at school! Great tutorial...
phpacademy 1 year ago
hi i`m using access 2007 and when i click validate nothing happens,, pls help me thats really important :(
telmuun1221 1 year ago
Hi Firchild.
is it possible to have this programming: when you open your database, the opening will be a presentation that says the login and password and then welcome to write your databases???? i want to open my file and when i say yes to open my file, i want nothing in the access desktop than only my form login.. is it possible?
marianalivinglife 1 year ago
thank you so much! I was stuck on getting this right for a while, the thing I had wrong was i didn't change the text box name from unbound to "username" and "password".. it all works now. thank you!
SuperJoosh 1 year ago
could i tell me please how to make a form open up on opening the database
a quick reply would be much appreciated thank you
by the way this tutorial inparticular helped me alot thank you
aaronr367 1 year ago
@aaronr367 It's already in the videos mate
Firchild 1 year ago
@Firchild which video? sorry
franceskakills 1 year ago
@aaronr367 , ur comments starts from something funny : Can i tell me" , lol...and tnx ms firchild for ur tutorials
Ahmadkhanize 1 year ago
This is so helpful, I've been trying to make sense of access, queries and sql for ages.
Thank you so much for posting these.
peteschofielduk 1 year ago
you are the best teacher in youtube!!!!!
laynejef 1 year ago
Brill
Thanks alot..
ZHJ1988 1 year ago
The password is still visible when viewing the VBA code. Any way around this?
Converting to ACCDE doesn't allow the form to acces the code.
bizzyb2068 2 years ago
bizzyb2068, if you are familiar with the DAO object in VBA, then what you can do is create a table that stores your Usernames and passwords. Make sure that your password field's input mask is set to password. Then use VBA search the table for the username and if it finds a match then have it check to see if the password field matches password text box. I have used this method a few times and it works beautifully. Of course that is the plain way, I use additional methods to make it more secure.
neilcstocks 2 years ago
does it work with iMac
Carliboy21 2 years ago
Dunno, never tried running access on an iMac, why don't you try it and let me know? If you're running Windows/Office thru Parallels or Boot camp then yes, it'll work
Firchild 2 years ago
I get:
"This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For example, if the OnOpen property of a form is set to =[Field], this error occurs because Access expects a macro or event name to run when the event is fired."
I have checked everything 10 times!
I have a swedish access 2003. :-(
tomaselvis 2 years ago
You'll have to reinstall Access i think, sounds like there's a chunk missing or corrupted
Firchild 2 years ago
OR.. New info.. A new instance of access has corrupted a previous one (I installed 2010 recently, and a lot of the functionality of 2003 has been ripped out)
Firchild 1 year ago
whats the login for?
like which database?
dethklok1989 2 years ago
It doesn't matter which database it's for, It'll work on any db
Firchild 2 years ago
cheers!
dewi20 2 years ago
hey is it xactly the same if ur using access 2007
and thx for the vid
Parts44 2 years ago
Hi
Thanks for your videos! I did manage to learn quite alot from your videos.Thanks again! But is it possible that u touch a bit on the Option group function in Access. Coz right now, im kinda stuck at that function. Lets take an example, I have 2 options 'Yes' and 'No'. When I click on the'Yes' option, the word 'Yes' does not appear in the table in Access. What should i do?
66911972 2 years ago
Hi Firchild. I am using Access 2007 and the code you provided does not seem to be working. I followed all your instructions and yet everytime I click on "Validate" nothing happens. What should I do?
Remission101 2 years ago
It works with Access 2003 and 2007. All my students have this working on 2007 fine.. Maybe you have it misconfigured or a dicky copy?
Firchild 2 years ago
Should we use SQL on backhand. if yes.. then how ... please do let us know !
- thnks for your such efforts. GOD BLES YOU
muslimrao 2 years ago
SQL on backhand...
Umm, err, I know what SQL is, but what's a backhand?
Firchild 2 years ago
Do you mean backend? If so, you really shouldn't be using access as an interface with mySQL or SQL Server. I'd use good old VB, not VBA via access
Firchild 2 years ago
Great tutorial 1 question how would i do multiple users? like sallys name and specific password. Joes name specific password etc. Also i would like to use a listbox to chose a name from and type password can u help?
mheadstate21 2 years ago
Check out 2.27
Firchild 2 years ago
hi..
i am a new user to the world of Access, you made my life soo easiy to learn access.. tons of thanks..my friend, very nice videos with great pase... i love them.. you rock
nag20in 2 years ago 2
thnx, ur video really helped me with puttin password protection on my database
merciless6000 2 years ago 2
thnx ur video really helped me when puttin on password protection on my database
merciless6000 2 years ago
awesome! really helped me with what i was doing.
ONE FLAW. that i figured out.
if you open it as AutoExec.. you can press F11 and it shows everything anyway!
any ideas around this?
keezysg 3 years ago
Database password?
Firchild 2 years ago
Very well done firchild, a bit fast for new comers like me to the world of Macrosoft Acccess.
landforce123 3 years ago 2
Wow!!!...Firchild, you read my mind, I wanted to know how to protect my forms using username and password using asterists mask.
Thank you
khapena 3 years ago