Hello All,
I have a form, in which I have a subform showing some data and a Button with following code:
Code:
Private Sub Command14_Click()
ModContext.Status = True
Me.SetFocus
DoCmd.Close acForm, Me.Name
End Sub
The problem is, whenever I change any record in the Sub Form, and click on the button, it is supposed to close the form and return the control to the function which called this form. But it never closes at the first click. I put a debug and it is being called but just not closing for the first time. Example, I selected a record in sub form and clicked button, the code mentioned above is being called every time but it doesn't close. Now I click the button again, and the same code is called again but this time the form is closed. Ahhh, I am getting mad
Please Help!
Vikas B