BeforeLoadOuterTable 事件,红色代码的空格你去掉。
If Connections("网维中心管理系统").GetTableNames.Contains(e.DataTableName) = False Then e.SelectString = "Select * f rom {" & e.DataTableName & "} where 1=2"End If