Results 1 to 4 of 4
  1. #1
    Bram is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    4

    Label automatically on/off - Visible/invisible by status Checkbox


    Hey!

    My problem is:

    In a report, i want:
    - if checkbox (3- state.. but doesn't matter here) IS NULL i want that there comes also text visible in my report.

    Can i play with a macro so that the text (i think with a label? wich is standard invisible) becomes visible in my report.

    The problem also is that all that must be done at the same time when opening the report... and the checkboxes are in different subreport (also like the text i want in the subreports...)

    Thx
    Bram

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    checkboxes don't have null values. If it is unchecked, it is 0. If checked, -1.

    What you want is something to the effect of:
    If Me.chkBox = 0 Then
    Me.LabelName.Visible = False
    End If

  3. #3
    Bram is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    4
    Quote Originally Posted by TheShabz View Post
    checkboxes don't have null values. If it is unchecked, it is 0. If checked, -1.

    What you want is something to the effect of:
    If Me.chkBox = 0 Then
    Me.LabelName.Visible = False
    End If
    Hey TheShabz,

    Yes, I have 3state - checkboxes
    0, -1, and Null

    Thanks for the support, but i can't work with VB.
    I work always with the macro's...

    Is there a solution for also?

    Thanks,
    Bram

  4. #4
    TheShabz is offline Court Jester
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    1,368
    Didn' t know the third stage was a Null. Oh well. I'm the exact opposite of you. I don't touch the macros. If you're using the checkboxes to turn on/off a label, I would think you'd need it at two-stage anyway. There is a solution by using macros. I just don't know of it as I don't use macros.

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

Similar Threads

  1. Replies: 11
    Last Post: 06-30-2011, 11:12 PM
  2. Making subform field visible/invisible
    By Snufflz in forum Forms
    Replies: 3
    Last Post: 01-17-2011, 05:30 AM
  3. Invisible/visible box
    By teirrah1995 in forum Forms
    Replies: 4
    Last Post: 10-03-2010, 02:45 AM
  4. Setting fields visible/invisible
    By col5473 in forum Forms
    Replies: 1
    Last Post: 09-17-2010, 09:14 AM
  5. Combo Boxes Visible/Invisible
    By Rick West in forum Forms
    Replies: 2
    Last Post: 07-06-2010, 09:41 AM

Tags for this Thread

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