标题: 求教:sqlconnect 的用法。。。。 看了帮助还不很明白 [打印本页] 作者: duancj_1982 时间: 2004-12-22 11:35 标题: 求教:sqlconnect 的用法。。。。 看了帮助还不很明白 请指点一下sqlconnect 函数的用法,看了帮助但还是不明白。。。。作者: guirongb 时间: 2004-12-22 11:47 标题: 例子,希望能对你有所帮助 Sub Main
Dim errors(1 To 3, 1 To 10) As Variant
Dim outputStr As String
Dim connection As Long
Dim prompt As Integer
Dim connect_str as string
Dim retcode as long
if connection < 0 then
SQLError destination:=errors
Msgbox "The SQLOpen was in unsuccessful due to error. connection= "&CStr(connection)&" Description= "&CStr(errors(1,3))