A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Visible or Not



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 03:38 PM posted to microsoft.public.access.reports
rml
external usenet poster
 
Posts: 172
Default Visible or Not

I'm using the following code to make a few objects visible or not. I have it
on a report on the Open Event. I get an error "You entered an expression
that has no value"

Please help? Thanks!

If Me.Client_Id = "NA" Then Me.Text32.Visible = False Else Me.Text32.Visible
= True
  #2  
Old May 6th, 2010, 04:03 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Visible or Not

Try moving the code to the section that contains the control you are trying to
hide. The Open Event is too early.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

rml wrote:
I'm using the following code to make a few objects visible or not. I have it
on a report on the Open Event. I get an error "You entered an expression
that has no value"

Please help? Thanks!

If Me.Client_Id = "NA" Then Me.Text32.Visible = False Else Me.Text32.Visible
= True

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.