My Assistant
![]() ![]() |
|
|
May 18 2007, 12:04 PM
Post
#1
|
|
|
UtterAccess Veteran Posts: 386 From: Near Dallas, TX USA |
Sorry, but I've read so many FAQ's and other postings my eyes are burning. But haven't found a fix that will probably end up being quite simple.
I would like to make the contents of a report control invisible dependent upon the contents of another control. Away2TalkNo is a number control and Away2Spkr is a text control. Here's the code I've used (under Detail_Format) -------------------------------------------- Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.Away2TalkNo Is Null Then Me.Away2Spkr.Visible = False Else Me.Away2Spkr.Visible = True End If End Sub ------------------------------------------- Shouldn't this work? Thanks, Jay Witt |
|
|
|
May 18 2007, 12:06 PM
Post
#2
|
|
|
UtterAccess Guru Posts: 568 From: Cleveland, OH |
Try this:
If IsNull(Me.Away2TalkNo) Then |
|
|
|
May 18 2007, 12:21 PM
Post
#3
|
|
|
UA Forum Administrator Posts: 38,131 From: Birmingham, Alabama USA |
Try ...
CODE Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) Me.Away2Spkr.Visible = Not IsNull(Me.Away2TalkNo) End Sub RDH |
|
|
|
May 18 2007, 12:57 PM
Post
#4
|
|
|
UtterAccess Veteran Posts: 386 From: Near Dallas, TX USA |
Hello Tunkefer,
Yes, that did it! Thank you. Lived near Cleveland in Lorain for over 30 years and 2 yrs in Garfield Heights. Miss the beautiful Ohio spring and fall weather . . . but not the wet cold winters! Regards, Jay |
|
|
|
May 18 2007, 01:04 PM
Post
#5
|
|
|
UtterAccess Veteran Posts: 386 From: Near Dallas, TX USA |
Yes to you also!
Thanks, Jay Witt |
|
|
|
May 18 2007, 01:08 PM
Post
#6
|
|
|
UA Forum Administrator Posts: 38,131 From: Birmingham, Alabama USA |
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th June 2013 - 06:34 AM |