Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: reply Pin
salam ellayan2-Jul-08 6:11
salam ellayan2-Jul-08 6:11 
GeneralRe: reply Pin
Dave Kreskowiak2-Jul-08 7:11
mveDave Kreskowiak2-Jul-08 7:11 
GeneralRe: reply Pin
salam ellayan2-Jul-08 20:27
salam ellayan2-Jul-08 20:27 
GeneralRe: reply Pin
Dave Kreskowiak3-Jul-08 1:39
mveDave Kreskowiak3-Jul-08 1:39 
GeneralC# Pin
salam ellayan24-Sep-08 22:17
salam ellayan24-Sep-08 22:17 
GeneralRe: C# Pin
Dave Kreskowiak25-Sep-08 1:35
mveDave Kreskowiak25-Sep-08 1:35 
QuestionBurn audio cd and audio wave reader Pin
Indra PR1-Jul-08 19:59
Indra PR1-Jul-08 19:59 
QuestionVB.NET Selecting datatable for Login verification Pin
drexler_kk1-Jul-08 18:10
drexler_kk1-Jul-08 18:10 
Hello all,

I'm trying to create a user login verification for my Window Form Application using VB.NET 2003 connect with MySQL 5.0 database.
When the login form load,I have load all the USERID,USERNAME and USERPASSWORD into a dataset and put into a datatable name"cashier"
shown inside my code below:

ObjConn = New OdbcConnection(Connect())
ObjComm = New OdbcCommand("SELECT * FROM pos_cashier WHERE LocationCode='" & TerminalLocate & "'", ObjConn)

ObjConn.Open()
ObjAdapter.SelectCommand = ObjComm
ObjAdapter.Fill(DS, "cashier")
DT = DS.Tables("cashier")
ObjConn.Close()


Now I need someone can guide me how to select a row or column inside this datatable so I can check the user login name and password
are same with what inside this cashier datatable which used to authorise user login. What I wish to do is something as follow:

If textbox1.text = datatable.cashier.USERNAME Then
If textbox2.text = datatable.cashier.USERPASSWORD Then
UserloginSuccess = True
Dim MainForm as new MainForm
Me.Hide()
MainForm.Show()
Else
Messagebox.show("Sorry,Wrong Password")
End If
Else
Messagebox.Show("Sorry,Username not available on the system.")
End IF


Anyone can give me some help about selecting this datatable?

Thank you for reading.

Regards
Drex
AnswerRe: VB.NET Selecting datatable for Login verification Pin
N a v a n e e t h1-Jul-08 19:32
N a v a n e e t h1-Jul-08 19:32 
QuestionRe: VB.NET Selecting datatable for Login verification Pin
drexler_kk1-Jul-08 20:19
drexler_kk1-Jul-08 20:19 
AnswerRe: VB.NET Selecting datatable for Login verification Pin
N a v a n e e t h1-Jul-08 20:49
N a v a n e e t h1-Jul-08 20:49 
JokeRe: VB.NET Selecting datatable for Login verification Pin
drexler_kk1-Jul-08 22:26
drexler_kk1-Jul-08 22:26 
GeneralRe: VB.NET Selecting datatable for Login verification Pin
N a v a n e e t h1-Jul-08 22:43
N a v a n e e t h1-Jul-08 22:43 
AnswerRe: VB.NET Selecting datatable for Login verification Pin
darkelv1-Jul-08 23:46
darkelv1-Jul-08 23:46 
QuestionSetting frame in animated GIF Pin
threemp31-Jul-08 14:01
threemp31-Jul-08 14:01 
AnswerRe: Setting frame in animated GIF Pin
jzonthemtn2-Jul-08 6:05
jzonthemtn2-Jul-08 6:05 
QuestionPassword Decryption Pin
raing31-Jul-08 13:23
raing31-Jul-08 13:23 
AnswerRe: Password Decryption Pin
Christian Graus1-Jul-08 15:56
protectorChristian Graus1-Jul-08 15:56 
GeneralRe: Password Decryption Pin
Paul Conrad1-Jul-08 16:57
professionalPaul Conrad1-Jul-08 16:57 
AnswerRe: Password Decryption Pin
Dave Kreskowiak2-Jul-08 4:14
mveDave Kreskowiak2-Jul-08 4:14 
QuestionI need help with VBA to extract Oracle data to Excel Pin
torgerjl1-Jul-08 12:07
torgerjl1-Jul-08 12:07 
QuestionGet "Created" date from and Access table Pin
chuckf1-Jul-08 9:37
chuckf1-Jul-08 9:37 
AnswerRe: Get "Created" date from and Access table Pin
jzonthemtn1-Jul-08 11:19
jzonthemtn1-Jul-08 11:19 
GeneralRe: Get "Created" date from and Access table Pin
chuckf2-Jul-08 2:19
chuckf2-Jul-08 2:19 
GeneralRe: Get "Created" date from and Access table Pin
jzonthemtn2-Jul-08 5:59
jzonthemtn2-Jul-08 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.