Connect form to database form

Posted 24 October 2017 - 08:07 PM

I'm new in visual basic and I didnt know how to validate the data I entered in ATMWelcome form to another form with database.
The code for ATM Welcome is here:

Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
'create window object for frmATMTransactionMenu
Dim atmTransactionWindow As New frmATMTransactionMenu
If EmployeeCheck() = True Then
If ValidateDataEntry() = True Then
If IsValidAccountAndPIN(txtAccountNo.Text, txtPIN.Text) Then
'display the newly created window object
atmTransactionwindow.Show()
'then close this window
Me.Close()
End If
End If
End If
End Sub

I think there's some code missing..to validate the form to another form with database..
The name of the form with database is CustomerInfo
By the way. It also use SqlStatement in establishing connection and execute SQL statement . And CustomereRecordReader as OledbDataReader