Results 1 to 2 of 2
  1. #1
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    Subform should be "empty" until all choices are done.

    Hi all,

    I have three comboboxes in the mainform:
    - cboOEM
    - cboODM


    give the OEM and ODM customer and
    - cboProject
    gives the Projectname.

    Then, I have a subform which gives a history of the customer orders.

    The two forms a linked by:
    Link Master Fields cboProjectID;cboOEMID;cboODMID
    Link Child Fields lnkProject;lnkOEM;lnkODM

    When I have, e.g. only an OEM customer chosen, the subform represents the whole history for this OEM and therefore mixes several projects.

    I'd like to have an empty subform as long as no single project is chosen. Once the single [project is chosen, the subform should show the corresponding data.

    Any idea how I do something like that?

    Thanks,
    Benjamin

  2. #2
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    Hi all,

    this is how I resolved the problem, but there might be more ideas out there:

    I've added to the After Update for the ProjectID combo box this code:

    Me.sfrmBoM.Visible = True
    Me.sfrmOrders.Visible = True

    and for form load and the reset button the following code:

    Me.sfrmOrders.Visible = False

    It does the job.

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

Similar Threads

  1. Replies: 5
    Last Post: 09-02-2011, 03:44 PM
  2. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  3. Replies: 1
    Last Post: 03-30-2011, 06:16 PM
  4. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM
  5. replace a empty field with the word "none" how??
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 01-15-2010, 11:02 AM

Tags for this Thread

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