C
chris seiter
I have a very small Access 2007 database with two tables, three queries, one
form, one macro, and one report. On the form is a button to run the macro.
The macro closes the form, runs a make table query, runs a SQL add column
query, then opens the form back up. The form's main information is pulled
from the other query, but contains linked data from the remade table. When I
run the macro by double-clicking on the macro itself, it runs correctly.
When I run it from the button, it fails on the make table, saying the
database is locked because the table is in use. I've tried deleting the
table before making it, I've tried putting a pause in the macro so it would
run a little slower, but nothing is working. The button was created using
the wizard, so nothing is wrong on that end. Any ideas?
form, one macro, and one report. On the form is a button to run the macro.
The macro closes the form, runs a make table query, runs a SQL add column
query, then opens the form back up. The form's main information is pulled
from the other query, but contains linked data from the remade table. When I
run the macro by double-clicking on the macro itself, it runs correctly.
When I run it from the button, it fails on the make table, saying the
database is locked because the table is in use. I've tried deleting the
table before making it, I've tried putting a pause in the macro so it would
run a little slower, but nothing is working. The button was created using
the wizard, so nothing is wrong on that end. Any ideas?