Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

Checkbox in report detail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don Stone - 27 Sep 2005 18:13 GMT
Hi--
I have a checkbox in the detail section of a report.  I need to make it
visible or invisible programatically.  I believe that I can do this using
the On Print event of the detail.  My problem is that I cannot determine the
code to accomplish it.  The checkbox name is SuperT.
Thanks for the help!
Don
Duane Hookom - 27 Sep 2005 18:48 GMT
You can add code to the On Format event like
 Me.SuperT.Visible = [some condition relating to bound values]

Signature

Duane Hookom
MS Access MVP

> Hi--
> I have a checkbox in the detail section of a report.  I need to make it
[quoted text clipped - 3 lines]
> Thanks for the help!
> Don
Tim Ferguson - 27 Sep 2005 19:08 GMT
>  I believe that I can do this using
> the On Print event of the detail.  My problem is that I cannot
> determine the code to accomplish it.  The checkbox name is SuperT.

Actually, I think it's the OnFormat event of the Detail section.

 If This = ToBeHidden
   SuperT.Visible = False

 Else
   SuperT.Visible = True

 End If

or the shorter version

 SuperT.Visible = Not (This = ToBeHidden)

Hope that helps

Tim F
Don Stone - 27 Sep 2005 19:17 GMT
Thanks so very much.  I guess that there are properties that do not come up
when you type the period after the control name, eh?
Don

> Hi--
> I have a checkbox in the detail section of a report.  I need to make it
[quoted text clipped - 3 lines]
> Thanks for the help!
> Don
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.