access page check box to control visibility of other fields

K

kris

I'm trying to hide several fields unless a checkbox is checked. The checkbox
name is alternate contact. The fields are alternate contact name, alternate
contact phone, alternate contact email. I’m assuming a vb script would not
work here and I’m unfamiliar with html scripting so any help would be
appreciated.
 
T

Tom Wickerath

Since you mention vb script and html scripting, are you asking how to do this
in a web page? If so, you've posted to the wrong newsgroup. This newsgroup is
for Microsoft Access, the database software. If you are using Access, then
you can use VBA code in the After_Update event procedure for the checkbox to
control the visible property for your controls.

Please clarify first if this is an Access-related question.


Tom

http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________

:

I'm trying to hide several fields unless a checkbox is checked. The checkbox
name is alternate contact. The fields are alternate contact name, alternate
contact phone, alternate contact email. I’m assuming a vb script would not
work here and I’m unfamiliar with html scripting so any help would be
appreciated.
 
K

kris

Thanks for your reply. Yes, I was talking about an access database page. Part
of the challenge I’m encountering is that in the element properties, section
properties and group properties I’m unable to locate the usual set of action
area’s like onclick, before update, after update where I can usually put my
code. I mentioned vb scripting and html scripting because I was thinking
since the action area’s were unavailable I would have to use the “Microsoft
script editor†to manually insert some code to accomplish the checkbox
actions I’m looking for. So far that hasn't worked for me though.
 
B

Brendan Reynolds

My understanding is that you can use VBScript or JScript in a data access
page. VBScript and VBA share many similarities, but there are some
fundamental differences too.

Unfortunately, I don't use data access pages so can't assist you with them.
There is a microsoft.public.access.dataaccess.pages newsgroup, but if you
are using the web-based interface to the newsgroups, I'm afraid I don't know
how to get to that newsgroup from there.
 
T

Tom Wickerath

Hi Kris,

I, like Brendan, do not use data access pages. Here is a link to a group
that might be more suitable to answer this question:

http://www.microsoft.com/communitie...spx?dg=microsoft.public.access.internet&exp=1

If I were you, I would clearly indicate in a repost that your quesition
involves DAP's.

Good Luck!

Tom

http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________

:

Thanks for your reply. Yes, I was talking about an access database page. Part
of the challenge I’m encountering is that in the element properties, section
properties and group properties I’m unable to locate the usual set of action
area’s like onclick, before update, after update where I can usually put my
code. I mentioned vb scripting and html scripting because I was thinking
since the action area’s were unavailable I would have to use the “Microsoft
script editor†to manually insert some code to accomplish the checkbox
actions I’m looking for. So far that hasn't worked for me though.
 
Top