• forms and subforms (2003)

    Author
    Topic
    #450985

    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 ….so the subform will be blank.

    Thanks,
    Deborah

    Viewing 1 reply thread
    Author
    Replies
    • #1109160

      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.

    • #1109263

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

    Viewing 1 reply thread
    Reply To: forms and subforms (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: