G
Guest
Hello
Access 2003 - Intermediate user (below basic VBA coding knowledge).
I've used the occasional event buttons to use the built in commands the
button wizard helps design and assign some macros. I have an issue and know
what I'm doing wrong but don't know how to fix it.
The desired outcome is when the user clicks no (using the on click event), I
want the query to restart. What happens is the query starts, and the user
enters the required parameters, but it won't finish because (Sorry, I'm
typing the error from memory), I get a locked table error, saying the table
is in use by another person, process.
Which is true because the form in question here is based off the same table.
This form is a summary form that essentially reports a total and confirms a
change the user is about to make. If he selects no, he's redirected to start
over again by beginning the query all over.
So I modified the onclick event to execute a do.cmd.close form first, and
that didn't work. I tried putting the do.cmd close form on the exit event,
but that didn't work either.
I'm thinking I need to redirect the form to a macro, where the macro would
close the form, then restart the query, and I'll try that today, but I'm
thinking it won't work either because the macro is still running because of
the form which is still related to the table which is somehow still be used
by the form process....I'm looped and it's all so confusing to me.
Have mercy,
Thanks
Laura
Access 2003 - Intermediate user (below basic VBA coding knowledge).
I've used the occasional event buttons to use the built in commands the
button wizard helps design and assign some macros. I have an issue and know
what I'm doing wrong but don't know how to fix it.
The desired outcome is when the user clicks no (using the on click event), I
want the query to restart. What happens is the query starts, and the user
enters the required parameters, but it won't finish because (Sorry, I'm
typing the error from memory), I get a locked table error, saying the table
is in use by another person, process.
Which is true because the form in question here is based off the same table.
This form is a summary form that essentially reports a total and confirms a
change the user is about to make. If he selects no, he's redirected to start
over again by beginning the query all over.
So I modified the onclick event to execute a do.cmd.close form first, and
that didn't work. I tried putting the do.cmd close form on the exit event,
but that didn't work either.
I'm thinking I need to redirect the form to a macro, where the macro would
close the form, then restart the query, and I'll try that today, but I'm
thinking it won't work either because the macro is still running because of
the form which is still related to the table which is somehow still be used
by the form process....I'm looped and it's all so confusing to me.
Have mercy,
Thanks
Laura