C
Chris Eberhart
Prior to setting a flag on a record, I want to see if a related record has
already been flagged (only one can be flagged at any time). Using FindFirst
and the NoMatch property seem like the ticket, yet I receive the message,
"Method or Data Member not Found.'
I suspect that this has to do with references libraries, but if the
Microsoft DAO 3.6 library, which I have selected, does not work I do not know
where to turn next.
Any ideas on how I can get these methods working? Jsut for yuks, here is
the code:
Dim rs As Recordset
Set rs = db.OpenRecordSet("Link_Documents_SOXControls")
With rs
.FindFirst "Primary = Yes AND DocumentID = " & Forms![Main
Document].DocumentID
If Not .NoMatch Then
MsgBox "A Primary control has already been assigned to this
document. You must clear that before assigning another."
Me.Primary = Me.Primary.OldValue
Else
End If
already been flagged (only one can be flagged at any time). Using FindFirst
and the NoMatch property seem like the ticket, yet I receive the message,
"Method or Data Member not Found.'
I suspect that this has to do with references libraries, but if the
Microsoft DAO 3.6 library, which I have selected, does not work I do not know
where to turn next.
Any ideas on how I can get these methods working? Jsut for yuks, here is
the code:
Dim rs As Recordset
Set rs = db.OpenRecordSet("Link_Documents_SOXControls")
With rs
.FindFirst "Primary = Yes AND DocumentID = " & Forms![Main
Document].DocumentID
If Not .NoMatch Then
MsgBox "A Primary control has already been assigned to this
document. You must clear that before assigning another."
Me.Primary = Me.Primary.OldValue
Else
End If