Query by Form Problem

dhersch

New Member
Joined
May 7, 2004
Messages
19
I have created a database that utilizes a Query by Form. I created the unbound form and have the results tied to a query. I can get this to work properly through using "[Forms][myform][cboChosenField] or [Forms][myform][cboChosenField] is null" in the criteria.

This all works great except that I am trying to do this for many fields. . . I would estimate 10 to 12 combo boxes. I have successfully had Access allow me to query by form for 5 fields, but can't get it to work for all of them. I don't get an error message when i try, however the query doesn't work and it will not let me view it in design view.

Is there another way to accomplish this? Do I need to break the queries up into 2 or 3 separate searches? Or did I make a mistake of which I am unaware? I know that people must be programming something similar. . . Please help. . . .
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
It sounds like an error in your SQL if it will not let you view in Design view, I generaly build in the design view anyway as I find it easier. You dont say what the error message is but You should be able to handle 10 filters OK, The spec for Access shows 40 as the limit.

Peter
 
Upvote 0

Forum statistics

Threads
1,221,813
Messages
6,162,126
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top