Talk About Network

Google





Software > Access Data Access Pages > Re: Hiding Cont...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 1718 of 1851
Post > Topic >>

Re: Hiding Controls

by "PaulD" <nospam> May 6, 2008 at 10:15 AM

The datapagecomplete event is where you want your code.  From there it gets

tricky since I don't know how your page is setup.  Something like this 
should get you going in the right direction

<SCRIPT language=vbscript event=DataPageComplete(oEventInfo) for=MSODSC>
<!--
dim ShowText
ShowText = 
msodsc.CurrentSection.DataPage.Recordset.Fields("your_checkbox_fieldname").Value
If ShowText = "Yes" then 'not sure of this, it may be true -1 or some
other 
value you will need to verify
    textbox1.visible = false
    textbox2.visible = false
End If
-->
</SCRIPT>

This assumes the default value for the boxes is visible.

"Michael" <Michael@[EMAIL PROTECTED]
> wrote in message 
news:F6E269C9-F57C-4D3B-9C47-BA31BD293F71@[EMAIL PROTECTED]
 have a simple Data Access Page that runs from a simple query. I need to
: find a way to hide a few controls (Text Boxes).
: The control that will decide the faith of the textboxes is a Checkbox,
the
: field in the source table for this checkbox is a Yes/No field, I want
the
: text boxes to be hidden when the Check box is not checked as well as the
: check box otherwise everything should be visible.
:
: -- 
: Regards,
:
: Michael Arch.
:
:
 




 5 Posts in Topic:
Hiding Controls
=?Utf-8?B?TWljaGFlbA==?=   2008-05-03 12:34:00 
Re: Hiding Controls
"PaulD" <nos  2008-05-06 10:15:59 
Re: Hiding Controls
=?Utf-8?B?TWljaGFlbA==?=   2008-05-06 09:58:03 
Re: Hiding Controls
"PaulD" <nos  2008-05-07 10:57:25 
Re: Hiding Controls
=?Utf-8?B?TWljaGFlbA==?=   2008-05-07 12:38:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 16:11:53 PST 2009.