DataMinerHome
Registered User.
- Local time
- Today, 08:56
- Joined
- Jan 4, 2010
- Messages
- 57
I need to be able to disable/enable controls on a subform based on various entries on the main form and/or subform. But when I try to reference the "enabled" property, I get error "Object doesn't support this property or method".
For example, using the immediate window, with main form JobLookup and Subform DataEntryMaster:
?forms.joblookup.dataentrymaster!setupstarttime
returns a date, as expected
But
?forms.joblookup.dataentrymaster!setupstarttime.enabled
returns the error shown above
I've also tried various formats like:
forms.joblookup.form.dataentrymaster!setupstarttime.enabled
forms.joblookup.dataentrymaster.controls("setupstartime").enabled
with no help.
How do I do this?
Using Access 2007.
Thanks for any suggestions.
For example, using the immediate window, with main form JobLookup and Subform DataEntryMaster:
?forms.joblookup.dataentrymaster!setupstarttime
returns a date, as expected
But
?forms.joblookup.dataentrymaster!setupstarttime.enabled
returns the error shown above
I've also tried various formats like:
forms.joblookup.form.dataentrymaster!setupstarttime.enabled
forms.joblookup.dataentrymaster.controls("setupstartime").enabled
with no help.
How do I do this?
Using Access 2007.
Thanks for any suggestions.