I am using...
Code:
'checkto see if school is already open on another form
If cycleFoundSchools(Me.NewSchoolsID, Me.Form.Name) Then
If Me.Recordset.EOF Then
If Me.Recordset.BOF Then
MsgBox "You have this record open and you only have a recordset of 1 so the form will now close"
DoCmd.Close
Else
MsgBox "You have this record open already in another record, moving to the previous record"
Me.Recordset.MovePrevious
End If
Else
MsgBox "You have this record open already in another record, moving next record"
Me.Recordset.MoveNext
End If
End If
but I could be wrong, it seems to be working fine.
Actually the problem now with the above code that if there is more than one record in a set, it moves forward skipping it but if I move backwards it moves forward so not sure how to get around.
Basically if I move forward or backwards I want to "skip" the record - not sure how.