I've searched quite a bit but i guess i'm not using the right terms so i'll post here. if there's an existing post that solves this please share.
I have a label and textbox control on an "Entry_Maintenance" form that i am wanting to toggle the visibility on and off depending on the action taken to open the form. (example: creating new entry, updating existing etc.) I have a series of events that open the same form and simply populate it with current records for updating or a blank entry for creating new. However i am trying to control the visibility from within the click even on a separate form, after the DoCmd.Openform "Entry_Maintenance". Im not sure how exactly to change properties on non-active forms. This is what i have but its obviously not working. can someone please enlighten me?
I have a label and textbox control on an "Entry_Maintenance" form that i am wanting to toggle the visibility on and off depending on the action taken to open the form. (example: creating new entry, updating existing etc.) I have a series of events that open the same form and simply populate it with current records for updating or a blank entry for creating new. However i am trying to control the visibility from within the click even on a separate form, after the DoCmd.Openform "Entry_Maintenance". Im not sure how exactly to change properties on non-active forms. This is what i have but its obviously not working. can someone please enlighten me?
Code:
DoCmd.OpenForm "Entry_Maintenance", acNormal, , "DML_ID =" & Me.lstRecentEntries.Column(0, ListIndex + 1), , acDialog
Me.txtDML_ToolNumber.Visibility = True
Me.lblDML_ToolNumber.Visibility = True