1 Replies - 305 Views - Last Post: 24 October 2017 - 08:55 PM Rate Topic: -----

#1 jemerald  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 24-October 17

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

Is This A Good Question/Topic? 0
  • +

Replies To: Connect form to database form

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13493
  • View blog
  • Posts: 53,899
  • Joined: 12-June 08

Re: Connect form to database form

Posted 24 October 2017 - 08:55 PM

I am not sure what your aim is. Where is this 'customer info' form? Where are you calling some sort of validation out of it?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1