Re: Multiply Query
- From: OldPro <rrosskopf@xxxxxxxxxxxxx>
- Date: Fri, 10 Aug 2007 06:23:58 -0700
On Aug 10, 7:21 am, "dan.cawtho...@xxxxxxxxx"
<dan.cawtho...@xxxxxxxxx> wrote:
Hi All,
I was wondering how do i create a form type dialog with several
option, and depending on the options that are selected it filters out
the results,
Ive created a query, relating to me project table,
i have created a unbound form, and added all the required fields which
are combo's extra and the linked all the associated fields under the
criteria field on the query back to the dialog form i've created.
the dialog search form works fine, only if something is selected on
each field.
What I'm actualy asking is that if the a particular wanted to ignore
say the Quoted Combo and left it blank the query would display both
Quoted and Non Quoted projects, depending on what the other criteria
was used of course!
does that make sense?
What you need to do (and it sounds like you may already be doing it)
is to parse a SQL string based on the current settings of several on-
screen controls. Presumeably, the trigger is the change event for
each control. If some of these controls are textboxes which may be
blank, then you want to test for NULL, and parse the SQL command
accordingly.
I have found it useful to divide up the SQL string into substrings
each represented by a global variable with module scope and then
assemble them into the final string at the end.
.
- References:
- Multiply Query
- From: dan.cawthorne@xxxxxxxxx
- Multiply Query
- Prev by Date: Re: Loop through all controls on a form for validation.
- Next by Date: Re: What is Automation ID?
- Previous by thread: Multiply Query
- Next by thread: RE: Multiply Query
- Index(es):
Relevant Pages
|