deejay_totoro
Registered User.
- Local time
- Today, 23:41
- Joined
- May 29, 2003
- Messages
- 169
Hello,
I am trying to make a "report" style screen that will allow users to call up a report based on the criteria they enter.
The query is passed the parameters from the controls on the form. This works fine.
Now in order to allow for user selection, it was suggested to use the following:
[Forms]![FormName]![controlName]
and in the criteria
Like [Forms]![FormName]![controlName]) Is Null
And this does indeed return all records even if nothing is entered.
The problem comes when I try to build another criteria. For example, say I want to generate a query that is within a certain date range and also by user name?
The above example does not seem to allow more than one use. If I use the above query example, it does indeed work with one column - but how can I get a similar result on multiple columns?
I want to make almost all the parameters in the underlying query dynamic, that is, the user can decide what they want.
thank you very much!
dj-T
I am trying to make a "report" style screen that will allow users to call up a report based on the criteria they enter.
The query is passed the parameters from the controls on the form. This works fine.
Now in order to allow for user selection, it was suggested to use the following:
[Forms]![FormName]![controlName]
and in the criteria
Like [Forms]![FormName]![controlName]) Is Null
And this does indeed return all records even if nothing is entered.
The problem comes when I try to build another criteria. For example, say I want to generate a query that is within a certain date range and also by user name?
The above example does not seem to allow more than one use. If I use the above query example, it does indeed work with one column - but how can I get a similar result on multiple columns?
I want to make almost all the parameters in the underlying query dynamic, that is, the user can decide what they want.
thank you very much!
dj-T