I've just learned how to create forms and add controls to them via VBA.
Can anyone help me create procedures for the controls?
For example:
Sub Mike()
dim frm as form, ctl as control
set frm=createform
set ctl=createcontrol(frm.name,accommandbutton)
end sub
That all works well for me. What I can't seem to get is then how to create a procedure that runs when the user clicks the command button.
Thanks for any help you can provide.
-Mike
Can anyone help me create procedures for the controls?
For example:
Sub Mike()
dim frm as form, ctl as control
set frm=createform
set ctl=createcontrol(frm.name,accommandbutton)
end sub
That all works well for me. What I can't seem to get is then how to create a procedure that runs when the user clicks the command button.
Thanks for any help you can provide.
-Mike