• Combo Box (2002)

    Author
    Topic
    #392429

    I have a combo box on a (Single) form that displays (in drop down) four columns:

    Name
    OfficePhone
    CellPhone
    Pager

    When a selection is made, the Name is displayed in the combo box.

    I also have a Continuous form (based on the same query) that displays this same Name, but in a text box. There is no access to the phone numbers. Is it possible to have three additional text boxes that will display the (underlying) phone numbers from the combo box?

    Viewing 0 reply threads
    Author
    Replies
    • #704438

      Bryan
      How is you single form related to your continuous form ?

      With a combo, you can display all it’s data quite simply, example:
      cboContact which has 4 columns, 0 = Name, 1 = OfficePhone, 2 = CellPhone, 3 = Pager.

      Now it’s quite easy to pull this info by creating 4 unbound text box’s on your form.
      In the control source of each, you must relate to the column you need, ie

      (Text1) – (ControlSource) =cboContact.Column(0) to display the “Name”
      (Text2) – (ControlSource) =cboContact.Column(1) to display the “OfficePhone”
      (Text3) – (ControlSource) =cboContact.Column(2) to display the “CellPhone”
      (Text4) – (ControlSource) =cboContact.Column(3) to display the “Pager”

      Combo’s columns start from numerical 0 (Zero)

      On the other hand, if the Cont….. form has the query behind it, Just add the relevant fields from the field selection list in design view .

      • #704439

        Dave:

        Not enough coffee this morning. I kept screwing up the syntax. Thanks for the input – it works perfectly!

    Viewing 0 reply threads
    Reply To: Combo Box (2002)

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

    Your information: