I'm not quite a noob, but I'm self taught and so I have some holes in my coding skills. I know that this should be possible but i cannot figure out what the syntax is. this is my first post to any forum and I'm only doing it because I have searched for the answer for days now, so forgive me of any posting faux pas.
Anyway, I have a parent form with 8 subforms that toggle visibility on top of one another depending on criteria in the parent.
I am setting a public string variable in the toggling function with the parent and subform name like so:
Then I'm trying to combine that variable with the form control to call it like this (which yes I know is wrong):
The "me" technique can only replace the parent name and not the subform so that doen't help because it's the constant toggling of visible subforms that is causing the problem. If I can't find a work around I'll have to write 8 times more code for every "If" statement.
Thanks ahead of time for any help.
Anyway, I have a parent form with 8 subforms that toggle visibility on top of one another depending on criteria in the parent.
I am setting a public string variable in the toggling function with the parent and subform name like so:
Code:
Forms![ProductShipment]![frmShipmentScaleDataSubform].Form.Visible = True strCurrentForm = "Forms![ProductShipment]![frmShipmentScaleDataSubform].Form"
Code:
If strCurrentForm!txtNetWeight.Visible = False Then
Thanks ahead of time for any help.
Comment