Hello Everybody,
I have a problem which is really starting to annoy me (after much time spent messing with it).
I want to base the contents of a subform on a query, which in turn takes its arguments form controls on the main form... simple enough you'd think.
However, if no values are in the controls I want to disregard that control (essentially pass a "*"). I wrote a little function to check the value of the controls, and if they are "" pass a "*", otherwise the value of the control.
It works fine in the debug window, but when I put it in the query, and set the argument as the relevant form control I get a schpiel about too complex a calculation or something if the control is blank... but it works fine if a value is in place. What am I doing wrong - I've been at this for ages and am getting rather pee-ed off!
All suggestions heartily welcomed!
kdm3
I have a problem which is really starting to annoy me (after much time spent messing with it).
I want to base the contents of a subform on a query, which in turn takes its arguments form controls on the main form... simple enough you'd think.
However, if no values are in the controls I want to disregard that control (essentially pass a "*"). I wrote a little function to check the value of the controls, and if they are "" pass a "*", otherwise the value of the control.
It works fine in the debug window, but when I put it in the query, and set the argument as the relevant form control I get a schpiel about too complex a calculation or something if the control is blank... but it works fine if a value is in place. What am I doing wrong - I've been at this for ages and am getting rather pee-ed off!
All suggestions heartily welcomed!
kdm3