Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CommandButton Scripting

Status
Not open for further replies.

billschu

Technical User
Apr 3, 2001
38
US
Hi,

I have created a custom commandbar (popup type) that shows up when I right-click on a listbox on my form. I want to add a textbox or a combobox to the popup, to allow the user to enter some search criteria and filter the list of items in the listbox (similar to the popup that comes up when you are in a table and right-click, and you can filter the field). The problem is, I don't know how to create such a textbox, either through code or through the interface. I can create buttons but thats about it.

If you have some sample code on how to create the CommandBarCombobox control and how to reference the text that the user would type in, that would be great.

Thanks,
Bill
 
Why not use the built-in record->filter toolbar buttons?

traingamer
 
Thanks for the reply..

The built in buttons are disabled for the filter; I'm assuming it is because I am right-clicking on a listbox, not a form or subform. I didn't think there was a built-in filter capability for listboxes so I thought I would have to create my own code.

Thanks,
Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top