I'm still not sure i understand. can you help with the syntax?
if Forms![AEntry]![txtSerialNumber] =1000 to 1999 then productid =1
select failures from returnfailures where productid =1
I dont know how to incorperate the if into the query.
thanks.
:
In your query, in the criteria box of productid, right-click and use
Build,
or just put in:
Forms![YourForm Name]![Textbox 1 Name]
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
Ok i'm not sure exactly how to do this. let me explain a little
more.
I have a table for returns, it lists failures and productids.
i have a table for products that lists producttypes and productids.
We have serialnumbers that define our products. ie: 1000-1999 would
be
product A, id=1. serialnumber 2000-2999 would be product B, id=2.
I need to select all failures from the returns table where the
productid
matches the product in text box 1.
Can you help be a little more specific on how to filter based on
text
box
1?
Thanks.
:
In your query, make a reference to the textbox. In your query's
criteria
box, enter:
Forms!FormName!TextboxName
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
I have a combo box i need to filter with a query. the query is
needs
to
be
different based on a text box. the text box will be a number, ie:
1000-1999
will be one selection in the combo box, 2000-2999 will be a
different
selection in the combo box. Can someone give me an idea on how to
do
this?
Thanks.