My application creates a number of linked tables in the current database. No problem getting the linked tables defined, but I would like to add a description field to the table definition so it appears in the Access UI. The following code fails with Error Code 3219. Does anybody know the correct syntax? Thanks.
Dim prp As DAO.Property
Dim tdf As DAO.TableDef
[ snip]
Set tdf = CurrentDb.CreateTableDef(sTablename & “_AOWWeb”)
tdf.Connect = “;Database=” & txtWebBEPath
tdf.SourceTableName = sTablename
Set prp = tdf.CreateProperty(“Description”, dbText, “_AOWWeb”)
‘ tdf.Properties.Append prp <==== Fails here with error code #3219
CurrentDb.TableDefs.Append tdf