If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Query...Expression
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 |
#2
|
|||
|
|||
Query...Expression
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 -- Email address is not valid. Please reply to newsgroup only. " wrote: 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 |
#3
|
|||
|
|||
Query...Expression
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 On Feb 20, 1:24 pm, Dale Fye wrote: 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 -- Email address is not valid. Please reply to newsgroup only. " wrote: 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 |
Thread Tools | |
Display Modes | |
|
|