Article ID: 107362
Article Last Modified on 1/8/2003
Sub Command1_Click()
Dim db as Database
Set db = OpenDatabase ("c:\BIBLIO.MDB")
' db.TableDefs("Titles").Indexes.Refresh ' Add this for workaround
db.Tabledefs("Titles").Indexes.Delete "PubID" '<- Problem line
End Sub
db.TableDefs("Titles").Indexes.Refresh
As an alternative workaround, replace the Delete line with this command:
' Enter the following two lines as one, single line:
db.TableDefs("Titles").Indexes.Delete
db.TableDefs("Titles").Indexes("PubID")
This command expands "PubID" into its complete reference:
db.TableDefs("Titles").Indexes("PubID")
This refreshes the Indexes collection before PubID is deleted in the same
statement.Additional query words: buglist3.00 3.00 fixlist4.00
Keywords: kbbug kbfix KB107362