Public Sub CreateSQLlinkTable(ByVal SQLTable As String, ByVal accTable As String)
'QLTable为SQL被连接的源表,accTable要新建的连接表名称
Dim db As Database
Dim tdef As TableDef
Set db = CurrentDb()
Set tdef = db.CreateTableDef(accTable)
tdef.Connect = "ODBC;DSN=K3;UID=SA;PWD=;DATABASE=AIS21180117135111"
tdef.SourceTableName = SQLTable