Results 1 to 2 of 2
  1. #1
    hkimpact is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2

    Report Question


    I have a form that has 4 checkbox controls on it. I want these to be an On/Off switch for subforms in a report named "rptMainReferralForm". I'm pretty sure I have the basics down. Do i need to add a subform control on the report and set the visibility to False? Then when the checkboxes are checked set the visibility to true and set to force a new page? Also what is the syntax of setting the visibility property for a form. I keep tinkering around with it and am not getting the results I want haha.

    Thanks,
    Rick

    Code:
        Dim sn As Boolean
        Dim cs As Boolean
        Dim cg As Boolean
        Dim supp As Boolean
    
        sn = Me.chkSelfNeglect.Value
        cs = Me.chkChoices.Value
        cg = Me.chkCaregiver.Value
        supp = Me.chkSuppNotes.Value
        
        If sn = True Then
        
        End If
        
        If cs = True Then
        
        End If
        
        If cg = True Then
        
        End If
        
        If supp = True Then
        
        End If

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Set the visibility property of the subform/subreport container control. I always give the container control a name different from the object it holds, like ctrDetails.

    Will be interesting to see if this works on report. Dynamic interaction with reports is very limited.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Question about report
    By NoAlarms in forum Access
    Replies: 13
    Last Post: 04-12-2012, 12:02 PM
  2. Report Question, Need Help
    By manic in forum Reports
    Replies: 3
    Last Post: 03-26-2012, 06:46 PM
  3. Formula question on Report
    By FestoAccessBuilder in forum Reports
    Replies: 0
    Last Post: 03-10-2009, 10:21 AM
  4. Replies: 1
    Last Post: 02-02-2009, 05:52 AM
  5. Question on a report
    By Xena11 in forum Reports
    Replies: 2
    Last Post: 11-17-2006, 12:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums