G
Guest
I am trying to find a specific record based on input from a text box on a
form. The user would hit a command button then the record would be updated.
I keep getting a data type mismatch error. This seems like it should be very
straight foward, but I am hitting a wall. Please help.
Set dbATTRAC = CurrentDb
Set rsAW_Data = dbATTRAC.OpenRecordset("AW_Data", dbOpenDynaset)
With rsAW_Data
.FindFirst "SSAN = " & txtSSAN.Text
If rsAW_Data("SSAN") = txtSSAN.Text then
'Update code here
End If
End With
TIA
form. The user would hit a command button then the record would be updated.
I keep getting a data type mismatch error. This seems like it should be very
straight foward, but I am hitting a wall. Please help.
Set dbATTRAC = CurrentDb
Set rsAW_Data = dbATTRAC.OpenRecordset("AW_Data", dbOpenDynaset)
With rsAW_Data
.FindFirst "SSAN = " & txtSSAN.Text
If rsAW_Data("SSAN") = txtSSAN.Text then
'Update code here
End If
End With
TIA