hi,
(E-Mail Removed) wrote:
> Closing a form error 2585 This action cannot be carried out while
> processing a form or report event.
Try a CancelEvent before closing your form.
> Sub Line_Item_Wrap_Up()
>
> DoCmd.SetWarnings True
>
> If Public_CALLED_LINE_ITEM_POP_UP = "NEW INVOICE" Then
> DoCmd.OpenForm "NEW INVOICE"
> Else
> DoCmd.OpenForm "EDIT INVOICE SHOWN"
> End If
DoCmd.CancleEvent
> DoCmd.Close acForm, "LINE ITEM POP-UP", acSaveNo
>
> End Sub
> Private Sub CancelButton_Enter()
> Call Line_Item_Wrap_Up
> End Sub
What do you like to achive with the enter event?
mfG
--> stefan <--