以下代码运行到"tdf.Connect = strcon"出现"无效的操作"(3219)
请各位前辈指点,谢谢
Dim dbs As Database
Dim tdf As TableDef
Dim strcon As String
Dim ii As Integer
Set dbs = OpenDatabase(TablePath, False, False, "WD=" & TablePassword)
Set tdf = dbs.TableDefs(dtblname)
strcon = ";DATABASE=" & TablePath
If Len(TablePassword) > 0 Then strcon = strcon & "; PWD=" & TablePassword