กระทู้เก่าบอร์ด อ.สุภาพ ไชยา
316 1
URL.หัวข้อ /
URL
Automatically Connect to Oracle ODBC
ลองอ่านดูที่ http://www.utteraccess.com/forums/showflat.php?Cat=&Board=access_2000&Number=273950 ครับ
Function ODBCOracle(strSrcTbl As String, strDestTbl As String, strODBC As String)
Dim dbs As Database
Dim tdf As TableDef
Set dbs = CurrentDb
Set tdf = dbs.CreateTableDef(strDestTbl)
tdf.Connect = "ODBC;DSN=" & strODBC & ";UID=ro;PWD=ro;"
tdf.SourceTableName = strSrcTbl
dbs.TableDefs.Append tdf
End Function
เวลาใช้
ODBCOracle("emp","emp","OracleDSN")
Function ODBCOracle(strSrcTbl As String, strDestTbl As String, strODBC As String)
Dim dbs As Database
Dim tdf As TableDef
Set dbs = CurrentDb
Set tdf = dbs.CreateTableDef(strDestTbl)
tdf.Connect = "ODBC;DSN=" & strODBC & ";UID=ro;PWD=ro;"
tdf.SourceTableName = strSrcTbl
dbs.TableDefs.Append tdf
End Function
เวลาใช้
ODBCOracle("emp","emp","OracleDSN")
1 Reply in this Topic. Dispaly 1 pages and you are on page number 1
1 @R06833
Time: 0.1289s