Private Sub Command0_Click()
Dim db As Database
Dim tdef As TableDef
Set db = CurrentDb()
Set tdef = db.CreateTableDef("TS")
tdef.Connect = "ODBC;DATABASE=MSPetShop;UID=saWD=;DSN=hh"
tdef.SourceTableName = "dbo.Account"
db.TableDefs.Append tdef
End Sub