qadeer37
Well-known member
Dim Password As String = InputBox("Confirm Password")
If txtGetPW.Text = Password Then
objCustomerADO.AddCustomer(CType(txtGetCID.Text, Integer), txtGetFN.Text, txtGetLN.Text, txtGetEM.Text, CType(txtGetBL.Text, Decimal), txtGetPW.Text)
Else
MessageBox.Show("Password don't match hence Customer can not be added", "MyShop", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
If txtGetPW.Text = Password Then
objCustomerADO.AddCustomer(CType(txtGetCID.Text, Integer), txtGetFN.Text, txtGetLN.Text, txtGetEM.Text, CType(txtGetBL.Text, Decimal), txtGetPW.Text)
Else
MessageBox.Show("Password don't match hence Customer can not be added", "MyShop", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If