I receive this error 'item can not be found in the collection correpsonding to the requested name or ordinal'. Previously, all I had to do was to correct a misspelled name. However, this time it seems that all is correct. I've checked all names in the tblNotes and nothing seems to be misspelled. Here is the code:
Public Sub NotesFindDupe(ByVal lngID As Long, ByRef sNoteDate As String, ByRef bNoteFound As Boolean)
sSql = "SELECT ID From tblNotes WHERE ID = " & lngID
rsState
rs.Open sSql, cn
If rs.EOF Then
bNoteFound = False
Else
bNoteFound = True
End If
End Sub
Can't get past the rs.open. Any help is appreciated.
Thanx.
Kim
Public Sub NotesFindDupe(ByVal lngID As Long, ByRef sNoteDate As String, ByRef bNoteFound As Boolean)
sSql = "SELECT ID From tblNotes WHERE ID = " & lngID
rsState
rs.Open sSql, cn
If rs.EOF Then
bNoteFound = False
Else
bNoteFound = True
End If
End Sub
Can't get past the rs.open. Any help is appreciated.
Thanx.
Kim