M
MarieG
Hello all,
I've inherited this database and I cannot figure out why this txt field is
not working.. the code is below. When I fill in the phone number in the
text box, it should show me the data that corresponds to that number, but it
says no records found?
Thanks so much!
Private Sub txtServNo_AfterUpdate()
'If criteria is entered in this field, start building (or continue building)
the search criteria (searchSQL) SQL string
If txtServNo.Value <> "" Then
If andFlag = True Then
searchSQL = searchSQL + " AND service_no = '" + txtServNo.Value + "'"
Else
searchSQL = "SELECT * FROM WirelessInventory where service_no = '" +
txtServNo.Value + "'"
andFlag = True
End If
End If
End Sub
I've inherited this database and I cannot figure out why this txt field is
not working.. the code is below. When I fill in the phone number in the
text box, it should show me the data that corresponds to that number, but it
says no records found?
Thanks so much!
Private Sub txtServNo_AfterUpdate()
'If criteria is entered in this field, start building (or continue building)
the search criteria (searchSQL) SQL string
If txtServNo.Value <> "" Then
If andFlag = True Then
searchSQL = searchSQL + " AND service_no = '" + txtServNo.Value + "'"
Else
searchSQL = "SELECT * FROM WirelessInventory where service_no = '" +
txtServNo.Value + "'"
andFlag = True
End If
End If
End Sub