Dissable command button

  • Thread starter Thread starter Bisha
  • Start date Start date
B

Bisha

I have a form and a subform. When I open the main form I
have one commandbutton disabled.I need to enable it as
soon as something is entered on the subform but I cant
seem to be able to reference the Button from the subfrom
change event.

thank you in advance
 
Put this code in the subform's After Insert event:

Me.Parent!NameOfButton.Enabled = True

--
PC Datasheet
Your Resource for Access, Excel and Word Help

Stephen G. Santus, MBA, Engineer Office (814) 226-5327
52 Campbell Avenue Fax (775) 822-3965
Clarion, PA 16214 (e-mail address removed)

www.pcdatasheet.com
 
Back
Top