Connecting Tech Pros Worldwide Help | Site Map

Making Textbox Invisible in Report-HELP!

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 06:06 AM
Johanna Albee via AccessMonster.com
Guest
 
Posts: n/a
Default Making Textbox Invisible in Report-HELP!

I created a simple Report for an invoice. How do I make a textbox invisible if the value is 0.00?

I tried a If then else statement but, obviously I'm missing something.

My textboxes are Amount1 - Amount5

Going crosseyed-- need your help!

Johanna

--
Message posted via http://www.accessmonster.com

  #2  
Old November 13th, 2005, 06:06 AM
Wayne
Guest
 
Posts: n/a
Default Re: Making Textbox Invisible in Report-HELP!

There are probably better ways of doing this but one method that I have
used is to have another invisible text box with the controlsource that
your current text box has. Then make the controlsource of your current
textbox: =IIf([SecondTextBox] = 0,Null,[SecondTextBox])

HTH

  #3  
Old November 13th, 2005, 06:06 AM
fredg
Guest
 
Posts: n/a
Default Re: Making Textbox Invisible in Report-HELP!

On Sun, 09 Jan 2005 18:27:27 GMT, Johanna Albee via AccessMonster.com
wrote:
[color=blue]
> I created a simple Report for an invoice. How do I make a textbox invisible if the value is 0.00?
>
> I tried a If then else statement but, obviously I'm missing something.
>
> My textboxes are Amount1 - Amount5
>
> Going crosseyed-- need your help!
>
> Johanna[/color]

Invisible?
Or just not show any value?
Set the Format property of each control to:
#.00;-#00;""

In Access help, look up:
Format property + Number and currency datatypes
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #4  
Old November 13th, 2005, 06:07 AM
Johanna Albee via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Making Textbox Invisible in Report-HELP!

Ok I will try that out. I don't want the text boxes to show any value if it is 0.00.

--
Message posted via http://www.accessmonster.com
  #5  
Old November 13th, 2005, 06:07 AM
Johanna Albee via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Making Textbox Invisible in Report-HELP!

Thank you Fredg! That worked beautifully! You have ended my torture.
:)

Johanna

--
Message posted via http://www.accessmonster.com
  #6  
Old November 13th, 2005, 06:07 AM
Mike Turco
Guest
 
Posts: n/a
Default Re: Making Textbox Invisible in Report-HELP!


"Johanna Albee via AccessMonster.com" <forum@AccessMonster.com> wrote in
message news:c70f06dbfded4dfd8991cf7307201aab@AccessMonste r.com...[color=blue]
>I created a simple Report for an invoice. How do I make a textbox invisible
>if the value is 0.00?
>
> I tried a If then else statement but, obviously I'm missing something.
>
> My textboxes are Amount1 - Amount5
>
> Going crosseyed-- need your help![/color]

Your code needs to be in the OnFormat event:

if textboxdatafield = 0 then textbox.visible = true else textbox.visible =
false

(I think you can do it on one line like that.)


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.