If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Complex Query
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. -- Message posted via http://www.accessmonster.com |
#2
|
|||
|
|||
Complex Query
I am sorry I have inserted the following criteria in Query for all 6 fields:
[Forms]![FormName]![Comboboxname] OR [Forms]![FormName]![Comboboxname] is Null -- Message posted via http://www.accessmonster.com |
#3
|
|||
|
|||
Complex Query
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 khashid wrote: I am sorry I have inserted the following criteria in Query for all 6 fields: [Forms]![FormName]![Comboboxname] OR [Forms]![FormName]![Comboboxname] is Null -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/200705/1 |
Thread Tools | |
Display Modes | |
|
|