L
Lee Rouse
I have set a function to run in the On Current event in a form. I want
the form to close after the code is run. I've tried entering the
Docmd.close command in several different form events, but I either get
errors, or the form remains open.
What code should I use for which event to close the form?
Better yet, is there a way to run the code which is now being fired
via the form's command button, directly from the underlying parameter
query, thereby eliminating the need for the form?
I really don't need the form at all. I'm just using it to trigger the
function.
Thanks,
-leeroi
"knowing just enough about VBA to be dangerous to myself and others"
the form to close after the code is run. I've tried entering the
Docmd.close command in several different form events, but I either get
errors, or the form remains open.
What code should I use for which event to close the form?
Better yet, is there a way to run the code which is now being fired
via the form's command button, directly from the underlying parameter
query, thereby eliminating the need for the form?
I really don't need the form at all. I'm just using it to trigger the
function.
Thanks,
-leeroi
"knowing just enough about VBA to be dangerous to myself and others"