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  

Coding problems with User defined Visible Property



 
 
Thread Tools Display Modes
  #1  
Old July 31st, 2007, 12:12 PM posted to microsoft.public.access.reports
oliaccount via AccessMonster.com
external usenet poster
 
Posts: 24
Default Coding problems with User defined Visible Property

Hi
I have a report that my users supply to seavel groups. Some do not require
certain fields so these will be hidden by using a checkbox on the relevant
form. At the moment, I am using the following in code builder:
Me.txt[recordNumber].Visible = Forms![Pdoptions]!chk[recordnumbersvisible]

Which isn't doing the job. I've checked all the names and they are correct.
This code gives me eaither a syntex error, or an expected end error, but I
can find no problem. The code is sitting in the "on format" property of the
detail section header, of the report I need this to work in. If someone could
offer some corrections to this code, or tell me some alternative method of
doing this, I would be very thankful.
By the way, if you've replyed to my eariler thread, can you repost here
please, it seems to of disappeared. It isn't even in my recent posts.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1

  #2  
Old July 31st, 2007, 12:26 PM posted to microsoft.public.access.reports
oliaccount via AccessMonster.com
external usenet poster
 
Posts: 24
Default Coding problems with User defined Visible Property

Forget it, I found a work around.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1

  #3  
Old July 31st, 2007, 12:41 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Coding problems with User defined Visible Property

Your brackets appear to be in the WRONG place. I would try the following
assuming your controls are named txtRecordNumber and
chkRecordNumbersVisible.

Me.[txtrecordNumber].Visible = Forms![Pdoptions]![chkrecordnumbersvisible]

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"oliaccount via AccessMonster.com" u33480@uwe wrote in message
news:75fddec86d7b3@uwe...
Hi
I have a report that my users supply to seavel groups. Some do not require
certain fields so these will be hidden by using a checkbox on the relevant
form. At the moment, I am using the following in code builder:
Me.txt[recordNumber].Visible = Forms![Pdoptions]!chk[recordnumbersvisible]

Which isn't doing the job. I've checked all the names and they are
correct.
This code gives me eaither a syntex error, or an expected end error, but I
can find no problem. The code is sitting in the "on format" property of
the
detail section header, of the report I need this to work in. If someone
could
offer some corrections to this code, or tell me some alternative method of
doing this, I would be very thankful.
By the way, if you've replyed to my eariler thread, can you repost here
please, it seems to of disappeared. It isn't even in my recent posts.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1



 




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:08 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.