I am programmatically creating a form based on a table. The prolem I have is that after creating an event and closing and saving the form and related module, the VBA editor (VBA IDE) is left open.
An Excerpt of my code...
ctl is a control object in case it is not intuitive.
I think I'm just missing knowing what the object is for the editor is?
I'll dig some more...
TIA.
An Excerpt of my code...
Code:
Set mdl = Forms(strDoc).Module
lngMdlLines = mdl.CreateEventProc("Click", ctl.Name)
mdl.InsertLines lngMdlLines + 1, vbTab & "RunProcessChain Forms![frm Process]!Process_Id"
DoCmd.Close acForm, strDoc, acSaveYes
DoCmd.Close acModule, mdl.Name, acSaveYes
ctl is a control object in case it is not intuitive.
I think I'm just missing knowing what the object is for the editor is?
I'll dig some more...
TIA.