A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query...Expression



 
 
Thread Tools Display Modes
  #1  
Old February 20th, 2007, 05:01 PM posted to microsoft.public.access.queries,microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 7
Default 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  
Old February 20th, 2007, 07:24 PM posted to microsoft.public.access.queries,microsoft.public.access.reports
Dale Fye
external usenet poster
 
Posts: 2,651
Default 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  
Old February 20th, 2007, 07:31 PM posted to microsoft.public.access.queries,microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 7
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.