tpickles1984
Registered User.
- Local time
- Today, 05:50
- Joined
- Feb 5, 2003
- Messages
- 19
I'm having two problems in on really, so here goes! I'm trying to create a button to disable another button in a subform, but it does not seem to recognise the subform in the expression. The code is as follows:
[Forms]![FrmHarnessSetup]![SfrmHarnessSetup]![Command12].Enabled = No
I simply can't work out why it doesn't work. If I get it to refer to a button in the main form, that works, and if I get it to refer to the subform when it's opened seperately, that works too. But for some reason, it doesn't understand the expression when I try to refer to the subform within the main form. Any ideas about this?
The other thing that I'm having trouble with is that when I got it to refer to just the subform on its own, it disabled the button in every record, not just the one for the currently selected record. How do I get it to refer to just the currently selected record?
Thanks a lot, any help would be much appreciated
[Forms]![FrmHarnessSetup]![SfrmHarnessSetup]![Command12].Enabled = No
I simply can't work out why it doesn't work. If I get it to refer to a button in the main form, that works, and if I get it to refer to the subform when it's opened seperately, that works too. But for some reason, it doesn't understand the expression when I try to refer to the subform within the main form. Any ideas about this?
The other thing that I'm having trouble with is that when I got it to refer to just the subform on its own, it disabled the button in every record, not just the one for the currently selected record. How do I get it to refer to just the currently selected record?
Thanks a lot, any help would be much appreciated