OK, I'm gonna start screaming pretty soon now. This is driving me up a wall. There's something I'm not seeing here that I'm hoping somebody else will see and help me out here.
After I've programmatically created a form I want to insert code into the Form Open event and I keep getting this error:
Run-time error '57017'
Event handler is invalid
The code is:
Dim mdl As Module, lngReturn As Long, frm As Form
Set mdl = frm.Module
lngReturn = mdl.CreateEventProc("Open", frm.Name)
mdl.InsertLines lngReturn + 1, vbTab & "Call FrmOpn"
FrmOpn is a Public Function.
Can anyone see anything wrong here?
Dan Rogotzke
Dan_Rogotzke@oxy.com
After I've programmatically created a form I want to insert code into the Form Open event and I keep getting this error:
Run-time error '57017'
Event handler is invalid
The code is:
Dim mdl As Module, lngReturn As Long, frm As Form
Set mdl = frm.Module
lngReturn = mdl.CreateEventProc("Open", frm.Name)
mdl.InsertLines lngReturn + 1, vbTab & "Call FrmOpn"
FrmOpn is a Public Function.
Can anyone see anything wrong here?
Dan Rogotzke
Dan_Rogotzke@oxy.com