Hello
Im trying to create a new form(form1), in this form the User Has to login with a userid and password in other to see form2 and there should be an option for new users to register on form1..And the program must be able to keep newuserids and passwords. Can anyone help me? Thanks
Ok, i did just that and when i open the fromAddUser and try to add a new user i get this error. " Sub or Function Not Defined" and this place gets highlighted in the codes..
Private Sub cmdAdd_Click() EstablishDatabaseConnection
Also when i open frmLoginScreen and type in a username and password and click on login i see a visual basic run time error..
"Run-Time error '-2147467259 (80004005)':
[Microsoft][ODBC Driver Manager] Data source name too long"
Dont create the connection object again and again if its just the same database. Set up the public connection in a BAS module on program start then close it on program end (in your Unload All procedure), and not per procedure call.
.Open .ConnectionString ...If you've already assigned the connection string to .ConnectionString then a simple .Open would suffice.
What value are you assigning to data source or what's "App.Path & strDBFile"? You may need to move your app directory closer to the root.
Oh I didn't know he was already using a db in his project.
he wanted to use a db but he didnt know how, so asked for an example, thats when i provided an example (was untested and written from memory, had to make slight changes)
Thanks a lot guys.. ive got it now .. now the last question is .. i alreay have form1 how do i link the 2 together, so after the person logins he sees form1. I hope you understand what im saying.. I tried changing the
frmMain.Show vbModal to form1.show and saved form1 in the same folder but not working.. :s
I think theres a problem.. when i added the first user i could login with that credentials but when i add another user i cannot login with the second username and password.. what might be wrong
Thanks a lot guys.. ive got it now .. now the last question is .. i alreay have form1 how do i link the 2 together, so after the person logins he sees form1. I hope you understand what im saying.. I tried changing the
frmMain.Show vbModal to form1.show and saved form1 in the same folder but not working.. :s
where it says frmMain.Show vbModal, just change it to form1.Show vbModal (it will work because it works with frmMain
I think theres a problem.. when i added the first user i could login with that credentials but when i add another user i cannot login with the second username and password.. what might be wrong
check the access database for the username and password of the second user. if it works for one user, it will work for others
Ok i compared the new one with the old ones and changed some of the codes.. now works perfectly.. thanks ... But i must open project1.vbp then i click start before it starts .. But its still coool
Ok i compared the new one with the old ones and changed some of the codes.. now works perfectly.. thanks ... But i must open project1.vbp then i click start before it starts .. But its still coool
you have to open the project file regardless of the project, thats how vb is