Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2006, 10:10 PM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ysiline Send a message via Yahoo to ysiline
Default Posible to detect disabled label?

I am trying to search for the entire control collection on a form to see whether there is any control being disabled? especially Label which is not coming with "disabled" property but we can disable label that associate to some controls on form.

Anyway to detect those diabled label?

Regard,
 
Old April 26th, 2006, 07:15 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should be able to cycle through the controls using a for next loop on the controls collection of the form. Within that loop, check to make sure the control is not a label (or any other control you use that doesn't have a disabled property, using the .type = ### part, within that if statement, check the value of the disabled property and do whatever it is you want with that info. Sorry for the lack of code, it's a bit early for me to be breaking out into VB.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect associated label ysiline Access VBA 1 April 26th, 2006 07:16 AM
Disabled icons EricJ VB How-To 0 July 12th, 2005 09:51 AM
How to detect if pop up window is disabled bekim Javascript How-To 1 January 23rd, 2005 06:38 AM
Disabled textbox r_ganesh76 ASP.NET 1.0 and 1.1 Professional 4 October 4th, 2004 11:14 PM
disabled popup renee_santoscoi Javascript How-To 5 November 11th, 2003 02:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.