If I understand you correctly, and
- Your first Form is frmStaff
- The names of the Controls holding first name and surname are the same on all Forms
- The frmStaff remains open while opening the other Forms
you can place this code in each Form:
Code:
Private Sub Form_Load()
Me.Filter = "[State] Like '*" & Me.OpenArgs & "*'"
Me.Filter = "[FIRST NAME] = '" & Forms(frmStaff)![FIRST NAME] & "'" & " and [SURNAME] = '" & Forms(frmStaff)![SURNAME] & "'"
Me.FilterOn = True
End Sub
BTW, you probably need to update your profile for this forum, as it still says that you are using Access 2003.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007