Jump to content

Referencing A Control In Subform In Access Using Vb


ev66
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...