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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Criteria from form on report



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 07:33 PM posted to microsoft.public.access.reports
AccessKay
external usenet poster
 
Posts: 106
Default Criteria from form on report

If you have an unbound form that you use for criteria and you want your
report to display the criteria selected by the user in the page header, how
would you do that?
Thanks for any suggestions.
  #2  
Old April 26th, 2010, 08:28 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Criteria from form on report

AccessKay wrote:

If you have an unbound form that you use for criteria and you want your
report to display the criteria selected by the user in the page header, how
would you do that?



Use text box expressions in the report that refer back to
the form. Could be as simple as:
=Forms![unbound form].[criteria textbox]

--
Marsh
MVP [MS Access]
  #3  
Old April 26th, 2010, 08:28 PM posted to microsoft.public.access.reports
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default Criteria from form on report

Put an unbound text box named ReportCriteria in the page header and put the
following in the report's header format event:

Me!ReportCriteria = Forms!NameOfUnboundForm!NameOfCriteriaField

Steve




"AccessKay" wrote in message
...
If you have an unbound form that you use for criteria and you want your
report to display the criteria selected by the user in the page header,
how
would you do that?
Thanks for any suggestions.



  #4  
Old April 26th, 2010, 09:07 PM posted to microsoft.public.access.reports
AccessKay
external usenet poster
 
Posts: 106
Default Criteria from form on report

Wow...something actually simple in Access. This worked perfectly. Thank you
very much!


"Marshall Barton" wrote:

AccessKay wrote:

If you have an unbound form that you use for criteria and you want your
report to display the criteria selected by the user in the page header, how
would you do that?



Use text box expressions in the report that refer back to
the form. Could be as simple as:
=Forms![unbound form].[criteria textbox]

--
Marsh
MVP [MS Access]
.

 




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 11:33 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.