B
Bill Murphy
I like the idea of using DSN-less connections to SQL Server as described
by Doug Steele in his August, 2004 article in the Smart Access newsletter.
My question relates to preserving the table description in the Tables
tab of Access. This description is lost when the old TableDef object is
deleted below, and the new one is created. Is there a way to preserve
the definition, since this is an important part of the application's
documentation?
Bill
' Delete the existing TableDef object
dbCurrent.TableDefs.Delete typNewTables(intLoop).TableName
' Create a new TableDef object, using the DSN-less connection
Set tdfCurrent=dbCurrent.CreateTableDef(typNewTables(intLoop).TableName)
tdfCurrent.Connect = strConnect
tdfCurrent.SourceTableName = typNewTables(intLoop).SourceTableName
dbCurrent.TableDefs.Append tdfCurrent
by Doug Steele in his August, 2004 article in the Smart Access newsletter.
My question relates to preserving the table description in the Tables
tab of Access. This description is lost when the old TableDef object is
deleted below, and the new one is created. Is there a way to preserve
the definition, since this is an important part of the application's
documentation?
Bill
' Delete the existing TableDef object
dbCurrent.TableDefs.Delete typNewTables(intLoop).TableName
' Create a new TableDef object, using the DSN-less connection
Set tdfCurrent=dbCurrent.CreateTableDef(typNewTables(intLoop).TableName)
tdfCurrent.Connect = strConnect
tdfCurrent.SourceTableName = typNewTables(intLoop).SourceTableName
dbCurrent.TableDefs.Append tdfCurrent