LarryDeLaruelle
Technical User
I have a combo control on a form that I want to filter based on a value in another form.
The main form allows the user to select a record and open an edit form for that record and also contains the value for the filter. A combo on the edit form needs to be filtered for values appropriate to the type of record displayed for edit.
The filtered combo is bound to a control on the edit form.
I set the combo's filter in the Row Source using the Expression Builder and came up with this syntax:
[Forms]![frmName]![cboName]
When I click on the combo's drop down I get a parameter prompt popup. Its as if Access does not recognize the reference to the form.
I checked my references thinking that could be the problem but they are set as I have other db's set which use this same type of process without a problem. The references are in order:
Visual Basic for Applications
Microsoft Access 9.0 Object Library
Microsoft DAO 3.6 Object Library
Microsoft Visual Basic for Applications Extensibility 5.3
OLE Automation
Utility
I'm using Access 2K.
I've also tried to set the filter directly in the query that is the row source for the combo with the same result; the odd thing is, if I have the main form open and run the query directly (with the filter set) it produces the correct filtered list.
Any help would be greatly appreciated.
Larry De Laruelle
ldelaruelle@familychildrenscenter.org
The main form allows the user to select a record and open an edit form for that record and also contains the value for the filter. A combo on the edit form needs to be filtered for values appropriate to the type of record displayed for edit.
The filtered combo is bound to a control on the edit form.
I set the combo's filter in the Row Source using the Expression Builder and came up with this syntax:
[Forms]![frmName]![cboName]
When I click on the combo's drop down I get a parameter prompt popup. Its as if Access does not recognize the reference to the form.
I checked my references thinking that could be the problem but they are set as I have other db's set which use this same type of process without a problem. The references are in order:
Visual Basic for Applications
Microsoft Access 9.0 Object Library
Microsoft DAO 3.6 Object Library
Microsoft Visual Basic for Applications Extensibility 5.3
OLE Automation
Utility
I'm using Access 2K.
I've also tried to set the filter directly in the query that is the row source for the combo with the same result; the odd thing is, if I have the main form open and run the query directly (with the filter set) it produces the correct filtered list.
Any help would be greatly appreciated.
Larry De Laruelle
ldelaruelle@familychildrenscenter.org