PC Review


Reply
Thread Tools Rate Thread

Check box on report invisible

 
 
=?Utf-8?B?ZGVi?=
Guest
Posts: n/a
 
      23rd Jul 2007

I have a check box [InList] on a report that should only be visible if
[DescIDNo] has a value.

I tried... but it does not work.

If Me.DescIDNo <> vbNull Then
InList.Visible = True
Else
InList.Visible = False
End If

Can anyone help??

Thanks
--
deb
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      23rd Jul 2007
If IsNull(Me.DescIDNo) = True Then
InList.Visible = False
Else
InList.Visible = True
End If

or

InList.Visible = Not IsNull(Me.DescIdNo)


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"deb" <(E-Mail Removed)> wrote in message
news:3EE25CA6-8DD3-49D9-8AE2-(E-Mail Removed)...
>
> I have a check box [InList] on a report that should only be visible if
> [DescIDNo] has a value.
>
> I tried... but it does not work.
>
> If Me.DescIDNo <> vbNull Then
> InList.Visible = True
> Else
> InList.Visible = False
> End If
>
> Can anyone help??
>
> Thanks
> --
> deb



 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      23rd Jul 2007
It would probably work by changing the first line to:
If IsNull(Me.DescIDNo) Then

But there's a more snazzy way to do it, without any code. See:
Format check boxes in reports
at:
http://allenbrowne.com/ser-52.html

Use a text box with ControlSource of:
=([DesclDNo] Is Null)
and format it so it shows no character for false.

This gives you control over the size, style, and color of the check box, and
works much faster than code.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"deb" <(E-Mail Removed)> wrote in message
news:3EE25CA6-8DD3-49D9-8AE2-(E-Mail Removed)...
>
> I have a check box [InList] on a report that should only be visible if
> [DescIDNo] has a value.
>
> I tried... but it does not work.
>
> If Me.DescIDNo <> vbNull Then
> InList.Visible = True
> Else
> InList.Visible = False
> End If
>
> Can anyone help??
>
> Thanks
> --
> deb


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making A form tab invisible/visible with a check box jaythe0ne@hotmail.co.uk Microsoft Access Forms 2 15th Aug 2009 09:14 AM
Make fields visible and invisible on check box mel Microsoft Access Forms 4 14th Oct 2008 08:34 PM
Make Label Invisible when check box is not marked =?Utf-8?B?Q2FybG9z?= Microsoft Access Reports 1 29th Mar 2006 04:06 PM
visible Invisible text and check boxes =?Utf-8?B?UGF1bCBN?= Microsoft Access VBA Modules 4 11th Jan 2006 01:37 AM
check box label to be visible and invisible =?Utf-8?B?Sm9obkx1dGU=?= Microsoft Access Reports 8 11th Nov 2005 01:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.