Keith Nichols
Registered User.
- Local time
- Today, 22:09
- Joined
- Jan 27, 2006
- Messages
- 431
This sounds like a cascading combo box issue but it isn't quite. 
I filter my form using 2 unbound combo boxes which can be used in any order, both of which define text strings using case select. These strings are concatenated into a filter text and applied by a routine called in the after update event of either combo. All works well.
My question: How can I show all the filtered records in a third combo box so that users can easily select the record of interest from the filtered set?
I attempted to define SQL for each combination of the 2 comboboxes but it was getting ludicrously complicated so that got the heave ho.
After that, I attempted to use a recordset clone, but I couldn't get this to work:
	
	
	
		
Reading the Access help, it seems that a combo box can only be populted via query, table or SQL. Is there any way of using a cloned recordset or the me.filter to show the filtered form records in a combo or list box?
I will be very grateful for any pointers.
 I filter my form using 2 unbound combo boxes which can be used in any order, both of which define text strings using case select. These strings are concatenated into a filter text and applied by a routine called in the after update event of either combo. All works well.
My question: How can I show all the filtered records in a third combo box so that users can easily select the record of interest from the filtered set?
I attempted to define SQL for each combination of the 2 comboboxes but it was getting ludicrously complicated so that got the heave ho.
After that, I attempted to use a recordset clone, but I couldn't get this to work:
		Code:
	
	
	'Clone record set for combo box rowsource
     Dim R As Recordset
     Set R = Me.RecordsetClone
     R.Bookmark = Me.Bookmark
'Populate combo box with recordset
     With Me![cboProjectList]
         .RowSource = R
         .Requery
     End WithReading the Access help, it seems that a combo box can only be populted via query, table or SQL. Is there any way of using a cloned recordset or the me.filter to show the filtered form records in a combo or list box?
I will be very grateful for any pointers.
 
	 ).
 ).
 
 
		 
  
  
  The next change may stop it working altogether for no obvious reason!
 The next change may stop it working altogether for no obvious reason! 
 
		 
 
		 
 
		