Kiwi-Wombat
Registered User.
- Local time
- Yesterday, 16:54
- Joined
- Aug 2, 2004
- Messages
- 56
An answer to a recent post gave me code to use when referencing a subform
Dim varsubName as String
varsubName = "forms!frmMain!subfrmMain.form!"
I then assumed I could put
varsubName & mycntrl.visible = false
but I get an error message
I assume that it can be done but I just can't see what the correct syntax should be
Any help would be gratefully received
forms!frmMain!subfrmMain.form!mycntrl.visible = false
As part of this is used frequently for other fields I thought I could save code if I assigned it to a variable ieDim varsubName as String
varsubName = "forms!frmMain!subfrmMain.form!"
I then assumed I could put
varsubName & mycntrl.visible = false
but I get an error message
Compile error: Expected: expression
It stops on the '&'I assume that it can be done but I just can't see what the correct syntax should be
Any help would be gratefully received