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  

report problems



 
 
Thread Tools Display Modes
  #1  
Old July 31st, 2007, 09:20 AM posted to microsoft.public.access.reports
pigsy101
external usenet poster
 
Posts: 10
Default report problems

i have a check box whose control source is:

=[Total In Stock]-[reorderlevel]=0


how can i set the control to only be visible if this check box is
true?


tried macro and vba, but can't quite work it out.


thanks in advance


Paul

  #2  
Old July 31st, 2007, 12:38 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default report problems

In the format event of the section containing the control use VBA like the
following

IF Me.[Total In Stock]- Me.[reorderlevel]=0 then
Me.ShowTotalControl.Visible = True
ELSE
Me.ShowTotalControl.Visible = False
END IF


Or you could try conditional formatting and setting the font color to match
the paper color. White on White is pretty well invisible.
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"pigsy101" wrote in message
oups.com...
i have a check box whose control source is:

=[Total In Stock]-[reorderlevel]=0


how can i set the control to only be visible if this check box is
true?


tried macro and vba, but can't quite work it out.


thanks in advance


Paul



 




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 12:35 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.