VB6.0都用哪些方法连接VF数据库?

2025-03-10 18:44:00
推荐回答(1个)
回答1:

Set ObjConn = New ADODB.Connection
ObjConn.Open "tmhbiaodz"
Set ObjRst = New ADODB.Recordset
Set ObjRst.ActiveConnection = ObjConn
ObjRst.LockType = adLockOptimistic
ObjRst.CursorType = adOpenKeyset
ObjRst.Source = "select * from tmhbiao"
ObjRst.Open