Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page