Hello,
In my application, I need to create temporary files, use them as sources for queries which in turn populate forms. When a button on the form is clicked, I need to delete these temporary files, re-generate the queries and refresh the forms.
I am encountering the following error which I am unable to unravel:
"The database engine could not lock table tbltempTDW because it is already in use by another person or process."
Could someone guide me where to look for as to who or what process is
locking this up? I am somewhat familiar with the use of the debugger.
For some more info on how the table is created:
I use the following syntax for initial deletion of any old file with the same name
Dim cat As ADOX.Catalog
Set cat = New ADOX.Catalog
cat.ActiveConnection = CurrentProject.Connection
cat.Tables.Refresh
cat.Tables.Delete "tbltempTDW"
the error message is displayed when I try to execute the
cat.Tables.Delete "tbltemTDW" statement.
Thanks in advance.
Uttam
In my application, I need to create temporary files, use them as sources for queries which in turn populate forms. When a button on the form is clicked, I need to delete these temporary files, re-generate the queries and refresh the forms.
I am encountering the following error which I am unable to unravel:
"The database engine could not lock table tbltempTDW because it is already in use by another person or process."
Could someone guide me where to look for as to who or what process is
locking this up? I am somewhat familiar with the use of the debugger.
For some more info on how the table is created:
I use the following syntax for initial deletion of any old file with the same name
Dim cat As ADOX.Catalog
Set cat = New ADOX.Catalog
cat.ActiveConnection = CurrentProject.Connection
cat.Tables.Refresh
cat.Tables.Delete "tbltempTDW"
the error message is displayed when I try to execute the
cat.Tables.Delete "tbltemTDW" statement.
Thanks in advance.
Uttam