-
Username & Password
I am working on an application that has a login screen.
usernames and paswords are stored in a database (Access DB)
I created the connection, the dataadapter, and the dataset.
the problem is i am trying to store the data in the field into a variable insted of showing it in the textbox
how do i go about doing that????
Help is mostly appreciated
-
Post the code you're using .
-
Private Sub frmLogon_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim pintRecords As Integer
Dim pbndTemp As Binding
pintRecords = odbdaPassUser.Fill(DsUserPass1)
pbndTemp = New Binding("text", DsUserPass1, "tblPassUser.fldUserName")
mstrUser = Me.
End Sub
this is how far i got. i couldent figer out the rest
i tried using the position but it didn't work
there is two varibales at module level
they are caled mstrUser and mstrPass
i am trying to use the variables to store the data from the table and then compare them to the text inputed in the textboxs
-
Sry dude , I hate working with Bindings . I don't use them any more . But , here's another way (which is much easier and clearer than Bindings)
http://www.vbforums.com/showthread.p...hreadid=250863
-