Thanks for the help. I am populating the combo boxes from various fields within (3) different tables. The AddAllToList function simply adds an option to the list pulled from the table. In my case, the added item is <All>.
Here's the code:
Code:
Function AddAllToList(ctl As Control, lngID As Long, _
lngRow As Long, lngCol As Long, _
intCode As Integer) As Variant
Static
Use of AddAllToList with multiple comboboxes on same form
I created a database in Access 2003 that contains an unbound search form with several combo boxes. Each combo box is populated with entries from the appropriate table. I want to allow the user to select individual criteria from each combo box, or select <ALL>. If I try to set the RowSourceType of more than 1 combo box to the AddAllToList function, I get the error that the function is already in use by another control.
Leave a comment: