| | |
VB.NET Login Verification
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2007
Posts: 6
Reputation:
Solved Threads: 0
Hi
I am creating an MDI application that asks the user for a User ID and Password to be able to show personal details once verified. Details of user ids and passwords are available in a MS Access Table1. There is another table2 for user details, and another one yet for transactions made by the user table3.
I have created the connection from access to vb.net through OLEDB.
The only outcome I have managed to produce is a datgrid showing all users, all passwords, and all transactions for each and every user. I.e. >> OleDbDataAdapter1.Fill(dsTable())
I need a procedure that asks the user for his ID and password, then once these are verified, only his appropriate details are shown. Example:
If txtUserID and txtPassword = True then
Show in label 1 Name
SHow in label 2 Surname
etc etc
Can somebody help with code ?
I am creating an MDI application that asks the user for a User ID and Password to be able to show personal details once verified. Details of user ids and passwords are available in a MS Access Table1. There is another table2 for user details, and another one yet for transactions made by the user table3.
I have created the connection from access to vb.net through OLEDB.
The only outcome I have managed to produce is a datgrid showing all users, all passwords, and all transactions for each and every user. I.e. >> OleDbDataAdapter1.Fill(dsTable())
I need a procedure that asks the user for his ID and password, then once these are verified, only his appropriate details are shown. Example:
If txtUserID and txtPassword = True then
Show in label 1 Name
SHow in label 2 Surname
etc etc
Can somebody help with code ?
•
•
•
•
Example:
If txtUserID and txtPassword = True then
Select Name, Surname from Tablel_name WHERE (id=?)then in your code you will verify that user entered correct information . after that replace the question mark with value you got from the user
OleDbDataAdapter.SelectCommand.Parameters("ID").Value = TextBox1.Text
OleDbDataAdapter.Fill(DataSet)•
•
•
•
Show in label 1 Name
SHow in label 2 Surname
etc etc
VB.NET Syntax (Toggle Plain Text)
Label1.Text = DataSet.Table_name.Rows(0).Item("Name") etc etc ..
hope that help you
Last edited by manal; Oct 13th, 2007 at 11:29 pm.
"give only what u willing to receive "
![]() |
Similar Threads
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: OleDbCommandBuilder isn't working
- Next Thread: HELP: Simple POS system in VB .NET
Views: 2058 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 30minutes 2008 access application arithmetic array assignment basic binary box button buttons center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design designer dissertation dissertations dissertationthesis dll dosconsolevb.net editvb.net error excel firewall folder highlighting image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net opacity pan peertopeervideostreaming picturebox picturebox1 plugin port print printing printpreview problem problemwithinstallation project record reports" reuse save savedialog serial server sorting sql storedprocedure string structures studio temp textbox timer updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





