help
The user interface prompts for 2 values. The first value is used as the parameter to lookup a particular record in the dataset. Once the correct record is found, I need to compare the second user value entered to another field in the dataset. Here is an example:
Dim strFld1 As String = TextBox1.Text
Dim strFld2 As String = TextBox2.Text
OleDbDataAdapter1.SelectCommand.Parameters("field1"
.Value = strFld1
DsGetData1.Clear()
OleDbDataAdapter1.Fill(DsGetData1)
If Me.BindingContext(DsGetData1, "myTable"
.Count = 0 Then
MsgBox("Rec not found. Please try again", MsgBoxStyle.Exclamation, Me.Text)
Else
'now check to see if strFld2 = field2 (from database)
' how to do this?
The user interface prompts for 2 values. The first value is used as the parameter to lookup a particular record in the dataset. Once the correct record is found, I need to compare the second user value entered to another field in the dataset. Here is an example:
Dim strFld1 As String = TextBox1.Text
Dim strFld2 As String = TextBox2.Text
OleDbDataAdapter1.SelectCommand.Parameters("field1"
DsGetData1.Clear()
OleDbDataAdapter1.Fill(DsGetData1)
If Me.BindingContext(DsGetData1, "myTable"
MsgBox("Rec not found. Please try again", MsgBoxStyle.Exclamation, Me.Text)
Else
'now check to see if strFld2 = field2 (from database)
' how to do this?