J
Jeff
Hi All
I have another question and thanks again in advance for your great advice
and help.
I am good with passing data to a query - what I really want to know is how
you can pass a value to a query that will make is as if you hadn't entered
any criteria at - all for example:
Text Box Name: BillTo
FormName: Campaigns
I can pass the value of BillTo to a query with setting the criteria of the
BillTo field in a query to
Forms!Campaigns.BillTo.Value
and everything works fine but if I leave the BillTo Text Box blank my query
returns no rows instead of ALL the rows that I would assume. I am trying
to write the query so that if there is nothing in the text box(or any other
way I want to pass similar information to a query) that it will act as if I
hadn't entered any criteria and return ALL rows.
Can this be done or do I have to write/desing separate queries based on the
user's selctions?
I usually use the Query Design view but straight SQL advice will work too.
If you need any more information please let me know.
Thanks a lot everyone,
Jeff
I have another question and thanks again in advance for your great advice
and help.
I am good with passing data to a query - what I really want to know is how
you can pass a value to a query that will make is as if you hadn't entered
any criteria at - all for example:
Text Box Name: BillTo
FormName: Campaigns
I can pass the value of BillTo to a query with setting the criteria of the
BillTo field in a query to
Forms!Campaigns.BillTo.Value
and everything works fine but if I leave the BillTo Text Box blank my query
returns no rows instead of ALL the rows that I would assume. I am trying
to write the query so that if there is nothing in the text box(or any other
way I want to pass similar information to a query) that it will act as if I
hadn't entered any criteria and return ALL rows.
Can this be done or do I have to write/desing separate queries based on the
user's selctions?
I usually use the Query Design view but straight SQL advice will work too.
If you need any more information please let me know.
Thanks a lot everyone,
Jeff