Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    South Carolina, USA
    Thanked 0 Times in 0 Posts

    forms and subforms (2003)

    OK...I have a main form that allows the user to select a department. Once selected, the information assocaited with the department appears in the subform. Works great.

    The department is selected from a drop-down list. On the main form, I also have some information related to the department....VP, department location, etc.
    When I open the form, the drop down is blank...waiting for me to select however, the other fields are populated with data from the first record. How can I remove this data??

    Now, I have my data entry set to NO and some coding me.[enter employee].form.dataentry = true the subform will be blank.


  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 16 Times in 16 Posts

    Re: forms and subforms (2003)

    One option would be to make the main form unbound and to populate the other controls from the combo box.

    Another option would be to make the main form move to a new record when it opens:

    Private Sub Form_Load()
    On Error Resume Next
    RunCommand acCmdRecordsGoToNew
    End Sub

    Yet another option would be to set the value of the combo box to the department for the first record when the form opens.

  4. #3
    Super Moderator
    Join Date
    Jun 2002
    Mt Macedon, Victoria, Australia
    Thanked 45 Times in 44 Posts

    Re: forms and subforms (2003)

    I often make the subform invisible until a value is selected in the combo box.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts