sub forms control change

  • Thread starter Thread starter SHETTY
  • Start date Start date
S

SHETTY

Dear Friends

I have one sub form in my form

Whne I open main form allowedit will be disabled
subsequently if user want to modigy data they can press edit button in the
main form

following code associated with double click even of button
Private Sub Cmd_Edit_DblClick(Cancel As Integer)
Me.AllowEdits = True
BILL_ID.SetFocus
Cmd_Edit.Enabled = False
End Sub

sub form name is Frm_Billlog_Sub

please guide



Ramesh Shetty
 
This line:

Me.AllowEdits = True

should be:

Me.Frm_Billlog_Sub.Form.AllowEdits = True
 
Back
Top