I decided to post this here as well as in clbvd since some folks don't seem
to read both.
I have what I thought was a simple little routine to convert a databases'
tables. The original databases were created with tables that are numbers,
such as 12345. We are wanting to convert the name of the database to
something like this Daily12345. Seems easy enough. Here's my code:
For Each tdCurrentTable In dbTemp.TableDefs
If IsNumeric(tdCurrentTable.Name) Then
tdCurrentTable.Name = "Daily" & tdCurrentTable.Name
End If
Next
Should just loop through the tables and change the names. And it almost
works, but with every database, I get one -- and only one -- table that
gives an error. It says that the table is locked by another user and can't
be changed.
Anyone know what might be happening here? Or know a simple way to convince
DAO to just release the lock?
Any help would be appreciated,
Marty