L
LittlePhil via AccessMonster.com
Someone please help me before i go insane!
I'm getting the error message 3211 the database engine could not lock the
table 'tblUpload' because it is in use by another person or process.
Background;
I'm importing data into a temporary table, this varies in how many columns it
has (and i do different things with it depending on how many columns) so i
delete it each time i import.
I then perform various data quality checks and display the import errors to
the user - the form (with subform in datasheet view) is opened in window mode
acDialog, to halt the code whilst the user decides if they want to continue
importing despite the errors
The problem appears in when i try delete the temporary table after appending
to a "master table"
The really stupid part is that i put an msgbox in just before the delete line
checking that the form had closed (i used isloaded) and suddenly no error!
So i tried a msgbox "" and this works too whats going on???
Thanks for reading!
I'm getting the error message 3211 the database engine could not lock the
table 'tblUpload' because it is in use by another person or process.
Background;
I'm importing data into a temporary table, this varies in how many columns it
has (and i do different things with it depending on how many columns) so i
delete it each time i import.
I then perform various data quality checks and display the import errors to
the user - the form (with subform in datasheet view) is opened in window mode
acDialog, to halt the code whilst the user decides if they want to continue
importing despite the errors
The problem appears in when i try delete the temporary table after appending
to a "master table"
The really stupid part is that i put an msgbox in just before the delete line
checking that the form had closed (i used isloaded) and suddenly no error!
So i tried a msgbox "" and this works too whats going on???
Thanks for reading!