Results 1 to 4 of 4
  1. #1
    nrog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    2

    Search Main form from sub form

    I have a customer form. The main part of the form (customer) has the basic information about the company. It has a subform with the various addresses on it. This all works fine (very basic).



    I have another subform on it (company_list) that is not linked. It will list all the companies and their region in a list form going down one side of the form.

    What I would like to do is click on the company I want in the subform and it pulls up the record in the main form, but I can't seem to figure out how to do it.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You should be able to adapt this, but without the OpenForm:

    http://www.baldyweb.com/Bookmark.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    nrog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    You should be able to adapt this, but without the OpenForm:

    http://www.baldyweb.com/Bookmark.htm

    I was able to adapt the code and it succesfully located the record and then replaced the key field (mine is a text field) with the correct information from the subform. However, it did not retrieve the record and only acts as though I am trying to change the field for the existing record on the form.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Can you post the db here, or a representative sample?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 04-20-2012, 03:16 AM
  2. Replies: 1
    Last Post: 02-29-2012, 09:38 AM
  3. Replies: 13
    Last Post: 01-29-2012, 01:45 PM
  4. Replies: 1
    Last Post: 11-21-2011, 07:58 AM
  5. Replies: 9
    Last Post: 02-15-2011, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums