"The connection cannot be used to perform this operation. It is either closed or invalid in this context."
请问各位vb高手有遇到以上问题吗?
会不会是mdac 的问题?因为我checked过我的code了。even compared with the working one.
我是vb新手,请各位帮帮忙!
Public Sub Info()
Set rstInfo = New ADODB.Recordset
With rstInfo
.ActiveConnection = conn
.CursorType = adOpenStatic
.LockType = adLockOptimistic
.Open "SELECT * FROM tblEmployee"
End With
it's a simple code but still getting error showed with highlighted text.