Hopefully someone can help me out with this:
I searched this forum for the last 1.5 hrs. for the answer to this but I haven't been able to find it so I thought I would seek direct assistance, so here goes....
I have a combo box (cboList) that pulls a value from a table. I want to take this value and use it to produce similar records in a list box that is bound by a query. This is simple enough and there are numerous posts in the forum and others that address this, BUT!!! - Where this problem differs is that the value selected from the combo box is only a PART of the field information for which I want to select records from...
i.e. The field is a primary key that represents 4 distinct pieces of info and looks like this: XXX-XX-X-X
In the combo box the user is selecting on the first piece "the XXX piece" to filter so that all records that have the same first 3 characters will be displayed in the list box.
What I think I need to do is add a wildcard to the combo box result in the query criteria - something like this:
Like "[Forms]![frmSearch]![cboList]*"
But this doesn't seem to work and produces no results - Does anyone have a suggestion as to how I can make this work?
thanks in advance -Kevin
I searched this forum for the last 1.5 hrs. for the answer to this but I haven't been able to find it so I thought I would seek direct assistance, so here goes....
I have a combo box (cboList) that pulls a value from a table. I want to take this value and use it to produce similar records in a list box that is bound by a query. This is simple enough and there are numerous posts in the forum and others that address this, BUT!!! - Where this problem differs is that the value selected from the combo box is only a PART of the field information for which I want to select records from...
i.e. The field is a primary key that represents 4 distinct pieces of info and looks like this: XXX-XX-X-X
In the combo box the user is selecting on the first piece "the XXX piece" to filter so that all records that have the same first 3 characters will be displayed in the list box.
What I think I need to do is add a wildcard to the combo box result in the query criteria - something like this:
Like "[Forms]![frmSearch]![cboList]*"
But this doesn't seem to work and produces no results - Does anyone have a suggestion as to how I can make this work?
thanks in advance -Kevin