D
Dale
Can anyone enlighten me on why this won't work?
I'm using findfirst to search for a call phrase in a memo field, phrases
listed in the callphrases table.
It worked once!! and then stopped...any help is appreciated, using Access 2007
Dim db As Database, strsql As String, rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("tblcallphrases", dbOpenDynaset)
'strsql = "[CallPhrase]='" & ([Forms]![frmConcernlog]![tblevents
subform].[Form]![eInvestigation]) & "'"
rst.MoveFirst
rst.FindFirst strsql
If rst.NoMatch Then
'do something exit sub
Else
Debug.Print rst!callphrase
End If
rst.Close
Set rst = Nothing
Set db = Nothing
I'm using findfirst to search for a call phrase in a memo field, phrases
listed in the callphrases table.
It worked once!! and then stopped...any help is appreciated, using Access 2007
Dim db As Database, strsql As String, rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("tblcallphrases", dbOpenDynaset)
'strsql = "[CallPhrase]='" & ([Forms]![frmConcernlog]![tblevents
subform].[Form]![eInvestigation]) & "'"
rst.MoveFirst
rst.FindFirst strsql
If rst.NoMatch Then
'do something exit sub
Else
Debug.Print rst!callphrase
End If
rst.Close
Set rst = Nothing
Set db = Nothing