sub forms control change

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
 
A

Arvin Meyer [MVP]

This line:

Me.AllowEdits = True

should be:

Me.Frm_Billlog_Sub.Form.AllowEdits = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top