ODBC;DSN=Test;UID=;PWD=;SourceDB=\\server\folder\Test\prime.dbc;SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;
然后是使用该连接的功能性静态查询。prime.dbc 中有 5 个表。
Select field1, field2 field3
From Table1
现在基于下面的函数,我想将 funTestShipUic 提供给 FROM 子句而不是静态 Table1。
Public Function funTestShipUic() As String
funTestShipUic = lngTestShipUic
End Function
我试过了 ...
Select field1, field2 field3
From funTestShipUic()
但我得到 ODBC——调用失败。ODBC Visual FoxPro 驱动程序 无效的下标引用。