Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

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

Discussion in 'Information Technology' started by Walter Mills, Nov 13, 2005.

  1. Walter Mills

    Walter Mills
    Expand Collapse
    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.
     
  2. Loading...


  3. Ofer

    Ofer
    Expand Collapse
    Guest

    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

    --
    The next line is only relevant to Microsoft''s web-based interface users.
    If I answered your question, please mark it as an answer. It''s useful to
    know that my answer was helpful
    HTH, good luck


    "Walter Mills" wrote:

    > 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.
     

Share This Page