Hi.
I'm using the below code to test for the presence of a record in tblControlledRiskAssessment:
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tblControlledRiskAssessment")
If rs.EOF = True Then
MsgBox ("empty")
Else
rs.FindFirst "[RiskID] = " & Me.txtRiskID
If rs.NoMatch Then
MsgBox "Not found: filtered?"
End If
End If
db.Close
Set rs = Nothing
The error I get is 'Operation not supported by this type of object'. Runtime error 3251.
Is this a references issue?
If anyone knows why this is happening or of a simpler method for testing for a record in another table then I'd be grateful to hear it.
Thanks.
Russie
I'm using the below code to test for the presence of a record in tblControlledRiskAssessment:
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tblControlledRiskAssessment")
If rs.EOF = True Then
MsgBox ("empty")
Else
rs.FindFirst "[RiskID] = " & Me.txtRiskID
If rs.NoMatch Then
MsgBox "Not found: filtered?"
End If
End If
db.Close
Set rs = Nothing
The error I get is 'Operation not supported by this type of object'. Runtime error 3251.
Is this a references issue?
If anyone knows why this is happening or of a simpler method for testing for a record in another table then I'd be grateful to hear it.
Thanks.
Russie