veraloopy
06-04-2009, 03:18 AM
i'm pulling my hair out with this one....
I'm using combo boxes on a form that link to another table to return a list of items.
One in particular 'Status' works fine on all the forms and on the tables but when I run a query to search on a value from the list, it shows no results but if I seach on the ID number of the item, it brings back the results.
How do I enter a value of the list in the criteria instead of having to use the numerical id of the item.
i.e.
ID Value
1 New
2 Shipped
3 Invoiced
When running the query against the Status, I set the criteria in the query to Like [Enter Status] & "*" but when I run this and type 'Shipped' as the criteria I get no results, however, If I enter the criteria as '2' I then get the correct results.
I have checked the bound to column and the column count (bound to is set to 1 and column count is set to 2).
Any ideas?
Any help is much appreciated :):):)
I'm using combo boxes on a form that link to another table to return a list of items.
One in particular 'Status' works fine on all the forms and on the tables but when I run a query to search on a value from the list, it shows no results but if I seach on the ID number of the item, it brings back the results.
How do I enter a value of the list in the criteria instead of having to use the numerical id of the item.
i.e.
ID Value
1 New
2 Shipped
3 Invoiced
When running the query against the Status, I set the criteria in the query to Like [Enter Status] & "*" but when I run this and type 'Shipped' as the criteria I get no results, however, If I enter the criteria as '2' I then get the correct results.
I have checked the bound to column and the column count (bound to is set to 1 and column count is set to 2).
Any ideas?
Any help is much appreciated :):):)