Results 1 to 2 of 2
  1. #1
    helen21112010 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    1

    Searching by field on subform on main form


    Hello,
    I have two tables, one for Sales Equipment which has a primary key of SalesGoodsID (auto generated) which has an one to many relationship with a table called Testing (field name relationship exists with is fk_SalesGoodsID). The primary key in table Testing is PATTESTID which is entered by data entry user.
    I have created a form with a subform. However what I want to be able to do is search on the main form for a field on the subform namely PATTESTID and after enterting the PATTESTID have the main form updated with the details relevant to the PATTESTID.
    If anyone has any ideas I would be very grateful, I am very new to designing forms on Access.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I think you may have things a little mixed up. It sounds like your MAIN form is based on the table SALES_EQUIPMENT and your subform is based on TESTING. So in other words there can be many TESTING records for each SALES_EQUIPMENT record. If you want to perform a search on the TESTING data, the easiest way to do that is to put a combo box or list box in the SUBFORM, where your user can select one of the TESTING records related to the SALES_EQUIPMENT item. Subform items are only related to items on the MAIN FORM so it should be impossible for you to select something on the SUBFORM that would change records on the MAIN form.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-18-2012, 03:05 AM
  2. Replies: 3
    Last Post: 01-05-2012, 07:15 PM
  3. Replies: 9
    Last Post: 12-15-2010, 01:44 PM
  4. Replies: 1
    Last Post: 11-13-2010, 12:57 PM
  5. Replies: 3
    Last Post: 11-05-2010, 03:10 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