J
jakbrooklyn
I'm trying to use the findfirst method and keep getting a compile error -
"Method or Data member not found". I don't get it (OK, I'm an old cobol
programmer trying her hand at VB). Here's my code (thanks to a post by Paul
Johnson from 8/31/04!) :
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordSet("SELECT CountryID, CountryName FROM
TCountries")
rst.FindFirst "CountryName = Forms!FCountries!CountryName" ' where MyID
is a control on
If rst.NoMatch = True Then
MsgBox "No match found for " & CountryName
Exit Sub
End If
TIA
"Method or Data member not found". I don't get it (OK, I'm an old cobol
programmer trying her hand at VB). Here's my code (thanks to a post by Paul
Johnson from 8/31/04!) :
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordSet("SELECT CountryID, CountryName FROM
TCountries")
rst.FindFirst "CountryName = Forms!FCountries!CountryName" ' where MyID
is a control on
If rst.NoMatch = True Then
MsgBox "No match found for " & CountryName
Exit Sub
End If
TIA