All you need is a form based on the table showing all records.
Another form with a combobox (cboUsers) listing all users with a unique id (PK of the table ideally) field hidden.
Then behind a command button (cmdFindUser) put the following code:
-
-
Private Sub cmdFindUser()
-
-
DoCmd.OpenForm "First Form Name", , , "[UserID]=" & Me.cboUsers
-
-
End Sub
-
-
this master form showing all the details. there i placed the command-
cmdfinduser.
and create seperate form with combobox. then i placed the code behind the
command-cmdfinduser
Private Sub cmdFindUser_click()
DoCmd.OpenForm "searchuser", , , "[Person]=" & Me.cbouser
End Sub
compile error is coming. method or datamember not found
pls help and sort out the problem yeah