forms and subforms

skate

Registered User.
Local time
Today, 07:58
Joined
May 22, 2002
Messages
136
I have a button in the main form which I want enabled/disabled depending on if there is a numeric value in one of the text boxes in the subform. I can get this to work if the button is in the subform but not if it's in the main form. It says object doesn't support this property or method. How do I fix this?
 
Set the button "Enabled" property as you desire, example:

me!cmdClick.Enabled=true

where cmdClick is the name of your button.

If your doing this from a subform, use the expression builder to builkd the reference to your button.
 
Ok, I figured it out. Actually it was my fault (mistyped). Now my problem is my subform has continuous forms and the button only gets enabled/disabled(depending on the value for the first record in the subform) when the main form initially opens. If I select a different record in the subform the button doesn't get effected. Can anyone help me?
 

Users who are viewing this thread

Back
Top Bottom