open an Employee record (in FORM View) using a drop-down menu of n

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a bunch of employee records in my data base. I would like to
have a Drop-down menu that has all of the last names of the employees and a
button that would open the <Employee Data> FORM with the record that
corresponds with the last name of the employee when the name is selected and
the button is pressed.
 
Hi Walter
In this link there is an example on how to create a search form

http://www.databasedev.co.uk/text_search.html

You'll need to replace the Text Box with a combo box.
Also, you might have a problem displaying only the family name, because few
employees might have the same family name, so it's better ro display the
first name with it.
The Row source of the combo need to include the Id of the Employee, because
its unique and the system would know who to search for.
Select ID, L_Name,F_Name From TableName

But there is no need to display the ID, you can set the column width, so the
id wont be displayed
0;3;3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top