Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Joliette, Quebec, Canada
    Posts
    290
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Need to initialize the another combo box (2000)

    I have two independent combo box on a form that selects a record based either by company number or company name and the work fine. The form displays company information name and address, and it has a sub form that lists that the purchase orders and other related information (a one to many relationship). I have a button that prints the a report of the information on the form.

    If open the form my two selected combo boxes at a null. I obtain the record for client x via the name of client x by the combo (cbo1). However if I then go to the combo box (cbo0) that selects the record by client number, the combo box (cbo1)still retains the name of the previously selected record.

    Private Sub cbo0_AfterUpdate()

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Need to initialize the another combo box (2000)

    If you want to set the combo's to Null, use the On Current event of the form :
    Private Sub Form_Current()
    Me.cbo0=Null
    Me.cbo1=Null
    End Sub
    Francois

  3. #3
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Joliette, Quebec, Canada
    Posts
    290
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Re: Need to initialize the another combo box (2000)

    Merci Fran

Posting Permissions

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