G
Guest
I am looking for a way to enter data into a field on a form, then after
update it will search for that data in the queries field and pull up the
records that match in a form view. I want to search any part of the field.
My code is currently as follows:
Dim myDB As Database
Dim criteria As String
Dim item As String
Dim response As Integer
Dim workset As Recordset
item = Me![Test1]
criteria = "[Description] = '" & item & "'"
Set myDB = CurrentDb()
Set workset = myDB.OpenRecordset("tblDailySupport", DB_OPEN_SNAPSHOT)
workset.FindFirst (criteria)
If workset.NoMatch Then
response = MsgBox("No Cases match.")
Else
DoCmd.OpenForm "frmTestSearc1"
End If
'DoCmd.FindRecord criteria
The workset.findfirst only pulls up the exact info in the field.
HELP
update it will search for that data in the queries field and pull up the
records that match in a form view. I want to search any part of the field.
My code is currently as follows:
Dim myDB As Database
Dim criteria As String
Dim item As String
Dim response As Integer
Dim workset As Recordset
item = Me![Test1]
criteria = "[Description] = '" & item & "'"
Set myDB = CurrentDb()
Set workset = myDB.OpenRecordset("tblDailySupport", DB_OPEN_SNAPSHOT)
workset.FindFirst (criteria)
If workset.NoMatch Then
response = MsgBox("No Cases match.")
Else
DoCmd.OpenForm "frmTestSearc1"
End If
'DoCmd.FindRecord criteria
The workset.findfirst only pulls up the exact info in the field.
HELP