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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Visible= Yes/No



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 03:24 PM
Andy
external usenet poster
 
Posts: n/a
Default Visible= Yes/No

Hi;

Have a situation where a control is set to Visible=No until a checkbox is
clicked then the control becomes visible.

That works. The obstacle is that it makes the control visible in all of the
records.

Only want the control visible in the records where the checkmark is True.

Any suggestions?

Thanks in Advance.

Andy.



  #2  
Old June 8th, 2004, 03:33 PM
Rick B
external usenet poster
 
Posts: n/a
Default Visible= Yes/No

if this is a single form, you need to insert your code in the OnCurrent
event so that it is executed when you move from one record to another.

If it is a continuous form, then I do not think you can do it that way. You
might be able to make an unbound text box and inset and IF statement that
diplays the control if the checkbox is clicked and displays "" if not, but
you would not be able to update the data in this example.

Rick B


"Andy" wrote in message
...
Hi;

Have a situation where a control is set to Visible=No until a checkbox is
clicked then the control becomes visible.

That works. The obstacle is that it makes the control visible in all of the
records.

Only want the control visible in the records where the checkmark is True.

Any suggestions?

Thanks in Advance.

Andy.




  #3  
Old June 8th, 2004, 03:52 PM
Andy
external usenet poster
 
Posts: n/a
Default Visible= Yes/No

Rick;

Thank You.

Andy

"Rick B" wrote in message
...
if this is a single form, you need to insert your code in the OnCurrent
event so that it is executed when you move from one record to another.

If it is a continuous form, then I do not think you can do it that way.

You
might be able to make an unbound text box and inset and IF statement that
diplays the control if the checkbox is clicked and displays "" if not, but
you would not be able to update the data in this example.

Rick B


"Andy" wrote in message
...
Hi;

Have a situation where a control is set to Visible=No until a checkbox is
clicked then the control becomes visible.

That works. The obstacle is that it makes the control visible in all of

the
records.

Only want the control visible in the records where the checkmark is True.

Any suggestions?

Thanks in Advance.

Andy.






  #4  
Old June 8th, 2004, 06:28 PM
John Vinson
external usenet poster
 
Posts: n/a
Default Visible= Yes/No

On Tue, 8 Jun 2004 10:24:35 -0400, "Andy"
wrote:

The obstacle is that it makes the control visible in all of the
records.

Only want the control visible in the records where the checkmark is True.


If you have A2000 or later, select the control in form design view and
select Format... Conditional Formatting. Use an expression checking
the checkbox to control the visibility (or color, or other properties)
of the control.

This feature isn't available in earlier versions.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




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