How do I create a cmd button that will display a form with data for a specified ID#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel B
    New Member
    • Aug 2010
    • 33

    How do I create a cmd button that will display a form with data for a specified ID#?

    I have a search form where I can enter in an ID# and I want to create a command button that, when clicked, it will bring up another form with a subform that displays the data for the ID# that was entered.

    Any Suggestions?

    Dan B.
  • Delerna
    Recognized Expert Top Contributor
    • Jan 2008
    • 1134

    #2
    Have the button open a form
    Have the form that gets opened bound to a query

    In the query that the form is bound to
    have the criteria for the ID field bound to the ID textbox on the search form


    the criteria will look something like this
    Code:
    forms!YourSearchFormName.txtIDTextBoxName

    Comment

    Working...