PRB: TableDefs Not Updated When SQL Statement Creates Table (104339)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q104339 SYMPTOMS
If you create a table with an SQL action statement such as SELECT INTO,
the new table is not immediately reflected in the TableDefs collection
of the database object or property. This may result in the error "Name
not found in this collection" (error 3265).
WORKAROUND
Perform TableDefs.Refresh immediately after creating the new table.
The Refresh method should be but is not documented for the TableDefs
collection in the Visual Basic manuals or Help menu. - Create the table using database.Tabldefs.Append instead of using an
SQL statement.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB104339 |
---|
|