A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Complex Query



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2007, 12:04 PM posted to microsoft.public.access.queries
khashid via AccessMonster.com
external usenet poster
 
Posts: 29
Default 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  
Old May 18th, 2007, 02:34 PM posted to microsoft.public.access.queries
khashid via AccessMonster.com
external usenet poster
 
Posts: 29
Default 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  
Old May 19th, 2007, 07:24 PM posted to microsoft.public.access.queries
themausman via AccessMonster.com
external usenet poster
 
Posts: 1
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.