Results 1 to 2 of 2
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    192

    Form to Requery on double clicking a combo box


    I am creating a Database of Geneology and has only one table (PersonTbl) with the following fields:

    PersonID (Primary Key), FirstName, LastName, DOB, MotherID, FatherID

    Both the Mother & Father are also in the table & their ID is the PersonID

    The Main form contains the fields from the table & the Mother & Father ID are Combo Boxes

    The form contains a subform in which children data are entered. This Subform is having the crieteria from a query:

    SELECT PersonTbl.*
    FROM PersonTbl
    WHERE (((PersonTbl.MotherID)=[Forms]![PersonFrm]![PersonID])) OR (((PersonTbl.FatherID)=[Forms]![PersonFrm]![PersonID]));

    What I want is when the Mother or Father combo boxes are double clicked, the Form should requery with their data.

    Thanks

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Have you tried something like the following in the OnDblClick event of the combo box:

    Me.[NameOfSubFormControl].Requery
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Double Clicking a List Box
    By UT227 in forum Programming
    Replies: 3
    Last Post: 06-24-2018, 12:58 PM
  2. Replies: 3
    Last Post: 10-15-2015, 08:48 PM
  3. Replies: 3
    Last Post: 08-03-2015, 08:24 AM
  4. Replies: 4
    Last Post: 09-02-2014, 03:53 PM
  5. Replies: 2
    Last Post: 02-13-2013, 04:14 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