Consulting

Results 1 to 5 of 5

Thread: Solved: Access: Search Form

  1. #1
    VBAX Newbie
    Joined
    Jun 2005
    Posts
    3
    Location

    Solved: Access: Search Form

    I want to create a from in Access with a text box where I can put in a value and then when I click the button it would query the table and bring the results in the same form and populate results in different text boxes that I already have on the form. I have a query and its results show up in the form but only when that form is opened up. I could not figure out how can I make the query result show up in the same form which is already open.

    Any help is really appreciated.

    Regards
    sonu

  2. #2
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Easiest way is to put the text box on a main form, binding the value in the text box to a key or an index you can use to return the row in the query that you want to use to populate information on your form. You'll need to create a subform for the returned data, and link the form and subform with the aforementioned field.

  3. #3
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    Just use the form's requery method.

  4. #4
    VBAX Newbie
    Joined
    Jun 2005
    Posts
    3
    Location
    I was able to do that by using list box rather than text box.

    Thanks for the help.

    Quote Originally Posted by OBP
    Just use the form's requery method.

  5. #5
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Sonu, would you mark this thread as solved by using the link at the top of this window called "Thread Tools"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •