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

    Question Searching Subform from Mainform Combobox

    Hi Folks, I am trying to make a form in my DB that will allow me to search on it's subform for a serial number and bring up the relevant recordset to the main form.

    I have a basic asset database, main form Primary index is ticketref, Subform Primary key is SerialNo.
    Main form holds details of Ticket Number, User and Order date as well as notes, subform holds the hardware details, serial nmber make model etc.

    I want to be able to click on the combo box and type in a serial number from the main form and have it display the relvant details to the main form. Hope this makes sense...

    Cheers



    Pad

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Subforms do not control main form (children do not dictate parents).

    Are Master/Child links properties of the subform container set? If so, then not all serial numbers and ticketrefs are available in the subform.

    Code could take the serial number input, search table (use DLookup) for associated ticketref then apply ticketref filter to main form. The related records in subform will synchronize by the Master/Child links.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 03-30-2012, 01:47 AM
  2. Replies: 1
    Last Post: 11-29-2011, 01:37 AM
  3. Link between subform and mainform
    By crowegreg in forum Forms
    Replies: 2
    Last Post: 08-24-2011, 07:05 AM
  4. MainForm/SubForm question
    By 10 Gauge in forum Forms
    Replies: 5
    Last Post: 03-04-2011, 07:46 AM
  5. Replies: 0
    Last Post: 03-14-2009, 12:33 AM

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