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  

Conditional Text Box



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2004, 09:54 PM
Ana
external usenet poster
 
Posts: n/a
Default Conditional Text Box

I have a report that in first place opens a form to enter=20
criterias for the source query.=20
I would like to show on the report title the criteria of=20
the search in case that there are somo of them.=20
For example if the user enter dates, then a text box will=20
appear on the tittle "From xx/xx/xx to xx/xx/xx" , but if=20
thre not filters selected, then don=B4t show the text box

Thank you very much
  #2  
Old July 8th, 2004, 10:21 PM
fredg
external usenet poster
 
Posts: n/a
Default Conditional Text Box

On Thu, 8 Jul 2004 13:54:10 -0700, Ana wrote:

I have a report that in first place opens a form to enter
criterias for the source query.
I would like to show on the report title the criteria of
the search in case that there are somo of them.
For example if the user enter dates, then a text box will
appear on the tittle "From xx/xx/xx to xx/xx/xx" , but if
thre not filters selected, then donīt show the text box

Thank you very much


In the Report Header add an unbound control.
Set it's control source to:
=IIf IsNull(forms!FormName!StartDate),"","From " &
Format(forms!FormName!StartDate,"mm/dd/yy") & " to " &
Format(forms!FormName!EndDate,"mm/dd/yy")

Change forms!formName!StartDate (and EndDate) to whatever the actual
name of the form and control names are.


--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #3  
Old July 12th, 2004, 02:49 PM
external usenet poster
 
Posts: n/a
Default Conditional Text Box

Thank you very very much


-----Original Message-----
On Thu, 8 Jul 2004 13:54:10 -0700, Ana wrote:

I have a report that in first place opens a form to=20

enter=20
criterias for the source query.=20
I would like to show on the report title the criteria=20

of=20
the search in case that there are somo of them.=20
For example if the user enter dates, then a text box=20

will=20
appear on the tittle "From xx/xx/xx to xx/xx/xx" , but=20

if=20
thre not filters selected, then don=B4t show the text box
=20
Thank you very much


In the Report Header add an unbound control.
Set it's control source to:
=3DIIf IsNull(forms!FormName!StartDate),"","From " &
Format(forms!FormName!StartDate,"mm/dd/yy") & " to " &
Format(forms!FormName!EndDate,"mm/dd/yy")

Change forms!formName!StartDate (and EndDate) to whatever=20

the actual
name of the form and control names are.


--=20
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format (text strings) JoeBlow Worksheet Functions 12 June 6th, 2004 02:38 AM
Conditional format - change cell colour according to the text within it Ian R Worksheet Functions 2 June 3rd, 2004 09:59 PM
Vertical Text Orientation Paul Anderson [MSFT] Visio 0 May 11th, 2004 05:16 PM
Conditional Formatting with text Bob Phillips Worksheet Functions 4 February 9th, 2004 07:57 PM


All times are GMT +1. The time now is 08:53 AM.


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