Parameters

B

BJM

Is there any way/syntax/code that you can have a query
return all records if a parameter dialog box is left blank
at runtime?

To explain:
In a query that is the recordsource for a report, I have
parameters on two feilds, one to specify which of a series
of teachers and the other to specify which of a series of
students the report will return a list of comment field
values for.

Is there any way that (without having two separate
reports,) if the value returned by a parameter is null (in
other words, if the field is left blank) the query will
return all records instead of cancelling as the default
action seems to be?

Thanks,
BJM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top