Complex Query

  • Thread starter khashid via AccessMonster.com
  • Start date
K

khashid via AccessMonster.com

Hi, I need a help with my query. I have a form with 6 combo boxes, and a
query in subform.

Subform query is updated based on the combobox selection, user has to click a
button ( for requery) to get the results after selection. Issue is now its
giving me error that Query is too complex.

I have inserted the following "Criteria" in all 6 fields:
[Forms]![FormName]![Comboboxname]

I was wondering if i can do the same thing as event procedure instead of
query, it might be faster and would not give me the error.

I am not expert with VB but i know how to play with codes, anyhelp would be
really appreciated.
 
K

khashid via AccessMonster.com

I am sorry I have inserted the following criteria in Query for all 6 fields:

[Forms]![FormName]![Comboboxname] OR [Forms]![FormName]![Comboboxname] is
Null
 
T

themausman via AccessMonster.com

Did you place that complete sentence in your criteria field?

In this case what you need to do is take one step at a time. As you said you
placed six parameters in your query. So here's what you need to do. Try
running the form and the query with just one combobox (no need to remove the
comboboxes just leave them there). Remove the parameters in your query and
place the first one. See if that one works and then place the second one. By
doing so you'll get to the point where the query says it's enough and that's
your bottleneck.

Maurice
I am sorry I have inserted the following criteria in Query for all 6 fields:

[Forms]![FormName]![Comboboxname] OR [Forms]![FormName]![Comboboxname] is
Null
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top