PC Review


Reply
Thread Tools Rate Thread

DAP control visibility based on value of another control

 
 
=?Utf-8?B?TW9uYS1BQkU=?=
Guest
Posts: n/a
 
      2nd Mar 2005
I have a yes/no field on my data access page (DAP) to indicate if a purchase
order should go to an alternate address than is stored in my vendors table.
I also have fields for altaddress1, altaddress2, altcity, altstate, altzip,
altphone, altfax, in my purchase order table. I've placed controls on my
DAP for each of these fields. Their default visibility property value is set
to "hidden", and I'd like them to change to "visible" when the value of the
yes/no field is true. I'd also like them to be "hidden" if I go to another
record or create a new record. This is the code I used in the
"onafterupdate" event in the "AltAddressYesNo" control:

if AltAddressYesNo.value = true then
AltAddress1.setAttribute "visibility", visible
end if

I also tried to use similar code in the "onclick" event and the "onchange"
event. (I'm using Microsoft Access 2003) None of them gave me the desired
results. Please help!

Thanks!
Mona-ABE
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!! Form control visibility, based on user level GD Microsoft Access Getting Started 1 20th Jan 2009 12:57 AM
Control Visibility of Text objects based on Mouse over =?Utf-8?B?U3JpZGhhcg==?= Microsoft Powerpoint 1 7th Mar 2007 08:52 AM
Set The Visibility of A Control Based Off A Combo Box Option =?Utf-8?B?U2V0IFRoZSBWaXNpYmlsaXR5IG9mIEEgQ29udHJv Microsoft Access Form Coding 12 21st Dec 2005 09:17 PM
Data access page control visibility based on value of another cont =?Utf-8?B?TW9uYS1BQkU=?= Microsoft Access 0 2nd Mar 2005 12:51 AM
CONTROL VISIBILITY OF FIELDS ON A REPORT BASED ON CRITERIA Sammie Microsoft Access Reports 1 3rd Feb 2005 08:29 PM


Features
 

Advertising
 

Newsgroups
 


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