Hi,
I have an access database of bank customers which include a unique pin number for each customer.
I have an atm part to my program and want the pin enrty form to read the unique pins from the database to allow access or not. What i have so far below only reads the first pin from my database! Any ideas?
[CODE=vbNET]
Private Sub btnEnter_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnEnter.Click
Dim balance As New frmBalance
If txtDisplay.Text = CStr(objDS.Tabl es(0).Rows(rowI ndex)("PIN")) Then
Me.Hide()
balance.Show()
End If
End Sub
[/CODE]
I have an access database of bank customers which include a unique pin number for each customer.
I have an atm part to my program and want the pin enrty form to read the unique pins from the database to allow access or not. What i have so far below only reads the first pin from my database! Any ideas?
[CODE=vbNET]
Private Sub btnEnter_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnEnter.Click
Dim balance As New frmBalance
If txtDisplay.Text = CStr(objDS.Tabl es(0).Rows(rowI ndex)("PIN")) Then
Me.Hide()
balance.Show()
End If
End Sub
[/CODE]
Comment