Query...Expression

S

Shimshee

Hello,

I run a few reports based on queries that have expressions, that
enable me to enter the data that should be displayed in that field. I
usually only enter 2-3 different phrases in those fields, how can I
make the query that it would give me the choice of which phrase I
should enter. So if I would run the query or report it would ask Type
1 for phrase A, type 2 for Phrase B...etc. Any other ideas to do this
would be appreciated.

Thank you in advance
 
D

Dale Fye

Your best bet is to create a form to use to run these reports.

On the form, have a combo box that lists the reports that can be run, and
another combo box that lists the phrases that are appropriate for each
report. Then have the query that the report is based on refer to the
information in your combo box. Lastly, have a command button that actually
runs the report, using the OpenReport method.

HTH
Dale
 
S

Shimshee

Thanks, I did it by adding an invisible field asking me to enter 1,2,
or 3. and then another field with an iif and the appropriate fields.

Thanks
 

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