I am using Access 2013 and starting to create a login form (based off a video I found online) so that it wont open without the correct login.
So far I have created a form with Username and Password text boxes. Then OK and Cancel Buttons. I also have a table that has UserName and Password set up. It is my understanding that to start I have to write code for the OK button. I have it written out but when I open the form type in the username and password then click ok it gives me a syntax error and opens the VBA for the button. I think from reading online that error means something is misspelled or not typed correctly but it has the top line highlighted with a yellow arrow leading me to believe the issue lies within that line. Am I correct in this? if so does anyone have any ideas on how to fix that part?
The top line just says:
Private Sub Command1_Click()
I am 100% new to using access let alone VBA. Any help would be appreciated or even a link to a good website that is easy to understand.
If needed I can post the entire code I have but I didn's want to make this post to much at first. I just need to know where a good place to start is.
So far I have created a form with Username and Password text boxes. Then OK and Cancel Buttons. I also have a table that has UserName and Password set up. It is my understanding that to start I have to write code for the OK button. I have it written out but when I open the form type in the username and password then click ok it gives me a syntax error and opens the VBA for the button. I think from reading online that error means something is misspelled or not typed correctly but it has the top line highlighted with a yellow arrow leading me to believe the issue lies within that line. Am I correct in this? if so does anyone have any ideas on how to fix that part?
The top line just says:
Private Sub Command1_Click()
I am 100% new to using access let alone VBA. Any help would be appreciated or even a link to a good website that is easy to understand.
If needed I can post the entire code I have but I didn's want to make this post to much at first. I just need to know where a good place to start is.