I finally got the result I wanted by simply putting the following in the Control Source of my unbound text box (CRNum) and deleting the VBA code.
Code:
=IIf([CurrentRecord]>Count([GrantLoanID]),0,[CurrentRecord])
=IIf([CurrentRecord]>Count([GrantLoanID]),0,[CurrentRecord])
Option Compare Database
Private Sub ChooseStaff_AfterUpdate() ' Find record for chosen staffer Dim rs As Recordset Set rs=Me.RecordsetClone rs.FindFirst "[StafferID] = " & Str(Nz(Me![ChooseStaff],0)) If Not rs.EOF Then Me.Bookmark = rs.Bookmark rs.Close Set rs = Nothing
Leave a comment: