Link to home
Start Free TrialLog in
Avatar of cnl83
cnl83Flag for United States of America

asked on

Can't use a combo box to define query results in access 2010

I have a form to setup a query criteria. I have a combo box on my form, but when I use that data to define query criteria it renders no results. See the image below.User generated image
txtProcessedby is my combobox

The criteria I set for the query is
Like "*" & [Forms]![SearchF]![txtProcessedby] & "*"
Avatar of Michael Carrillo
Michael Carrillo
Flag of United States of America image

So you have a form called 'SearchF' and a combo box on that form called 'txtProcessedby'.
Is this form a subform or the main form you open to run this query?

Have you tried appending the property of the combo box?

Like "*" & [Forms]![SearchF]![txtProcessedby]!value & "*"
Avatar of cnl83

ASKER

It is the main form used to run the query.

The criteria you posted did not work.
Avatar of cnl83

ASKER

txtprocessedby is on the main form searchF.
ASKER CERTIFIED SOLUTION
Avatar of pteranodon72
pteranodon72
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cnl83

ASKER

That worked, but I also have list value combo boxes that don't render the correct results.
Avatar of cnl83

ASKER

Actually it worked half way. It isnt showing all of the results
Avatar of cnl83

ASKER

I deleted all the other query criteria. That colum bound fix worked.

Why is the other criteria making my results incomplete?