Jump to content

Referencing A Control In Subform In Access Using Vb


Recommended Posts

Hello, I have been trying to reference a button on a subform in accesss, from the main formI have tried various code combinations and looked on internet, but still cant get it to work.Can anyone help please ?Mainform is called Form1Subform is called subFrmInvoiceLineButton on subform is called delRec2The following code does not work for some reason-

Private Sub Check10_Click()If Check10.Value = 1 ThenMe.Form.subFrmInvoiceLine.delRec2.Visible = TrueEnd IfEnd Sub

Thanks in advance for your help,Evan.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...