Results 1 to 2 of 2
  1. #1
    krouchchocolate is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    3

    Help with dropbox + subform

    Hello,

    I am trying to create a form that will include a dropbox + a subform. For my project it consists of a single serial number, but that serial number may contain a lot of part number with a date differentiating each part number.

    In the dropbox section, I want to be able to click any serial number I am looking for. For the subform, I want it to display all that part number and each date that correlates to that one serial number.



    However, whenever I drop the box down and choose any serial number, the part number does not update along with it.
    For Example:
    Serial Number: 7026707 -->PN1:X1523 1/1/2011, PN2:X1535 1/3/2011, PN3:X5555 3/3/2011


    Has anyone else ever ran into this problem? It is making me frustrated.



  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Ensure that Sub-form returns all records for Serial number and Part numbers when the form opens.
    Use following code in the after update event of the combo box having your serial numbers.

    With Me.YourSubFormControl.Form ' YourSubFormControl is the name of SubForm control used on the main form
    .Filter = "[YourFieldName] Like """ & Me.YourComboBoxName & "*" & """" 'YourFieldName is the name of serial number field.
    .FilterOn = True
    End With

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

Similar Threads

  1. Parameter query with DropBox through Form
    By dbalilti in forum Forms
    Replies: 17
    Last Post: 06-01-2012, 09:34 AM
  2. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  3. Replies: 4
    Last Post: 03-30-2012, 01:47 AM
  4. dropbox might be changing relationships
    By Gûlghâshbúrz in forum Database Design
    Replies: 8
    Last Post: 03-15-2012, 03:15 AM
  5. Replies: 1
    Last Post: 11-29-2011, 01:37 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