Hi all -
Any help on this much appreciated - I've searched far and wide, but just haven't found the answer that I can apply easily to my database!
i) I have a pre-existing query that pulls various data from different tables;
ii) I now need to, retrospectively, add a checkbox to the main form to alter this query depending upon whether otr not it's checked;
iii) If the box is checked, I want it to run the query as normal (as it currently stands), but if it's unchecked, I want the additional criteria of >10000 to apply to a field in the query called SOURCE (this is basically determining whether the data comes from us or from external places - if the SOURCE is <10000 it'll be our data, if it's >10000 it'll be external. I just want the option of showing everything or only ours (<10000)
In an ideal world, I don't want to muck around with VBA and AfterUpdate stuff.
Is there a simple way in the SQL of the query (it's a Union query, so it's gonna have to be in SQL!), to apply this criteria to the SOURCE field depending on whether or not the box is checked?
Your help would be appreciated.
All the best,
Jonathan
Any help on this much appreciated - I've searched far and wide, but just haven't found the answer that I can apply easily to my database!
i) I have a pre-existing query that pulls various data from different tables;
ii) I now need to, retrospectively, add a checkbox to the main form to alter this query depending upon whether otr not it's checked;
iii) If the box is checked, I want it to run the query as normal (as it currently stands), but if it's unchecked, I want the additional criteria of >10000 to apply to a field in the query called SOURCE (this is basically determining whether the data comes from us or from external places - if the SOURCE is <10000 it'll be our data, if it's >10000 it'll be external. I just want the option of showing everything or only ours (<10000)
In an ideal world, I don't want to muck around with VBA and AfterUpdate stuff.
Is there a simple way in the SQL of the query (it's a Union query, so it's gonna have to be in SQL!), to apply this criteria to the SOURCE field depending on whether or not the box is checked?
Your help would be appreciated.
All the best,
Jonathan