Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jun 2001
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom control (97)

    Custom control
    How do you use the OBJECT command from the FORM/REPORT DESIGN category of a command bar
    Attached Images Attached Images

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Custom control (97)

    This is the same dropdown list that is (by default) the leftmost control on the Formatting (form/report) toolbar. Is is only enabled when you have a form or report open in design view, and then it is filled automatically.

    I don't think you can use this for your own purposes. If you want a combo box on your toolbar, you must create it yourself in code:

    Dim ctlCombo As CommandBarComboBox
    Set ctlCombo = CommandBars("MyCommandBar").Controls.Add(msoContro lDropDown)
    With ctlCombo
    ...
    End With

  3. #3
    4 Star Lounger
    Join Date
    Jun 2001
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom control (97)

    Darn, thanks Hans.

Posting Permissions

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