troubleshooting Question

set property of control in continuous form, depending on data values

Avatar of trentham
trenthamFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Access
5 Comments1 Solution311 ViewsLast Modified:
I'm developing a simple database app which uses a continuous form displaying multiple records at a time.

What I want to be able to do is control some of the objects on each detail display.  For example, I want a button to be active (or maybe made visible) depending on a value in the record.

The Section: Detail doesn't give me any events I can attach anything to so I had a look at the form's On Current event, trying code such as

if SomeValue = 1 then
   btnTest.enabled = true
   btnTest.enabled = false
end if

but that sets ALL instances of btnTest (it's in the detail section) to the same state (I assume, depending on the last test it performed).
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros