Hello
I'm using vb6 and access
with this query I'm getting this error
impossible to use this connection Its either closed or invalid in this context ...
Thanks a lot
I'm using vb6 and access
with this query I'm getting this error
impossible to use this connection Its either closed or invalid in this context ...
Code:
Set RS = New ADODB.Recordset
With RS
.CursorLocation = adUseClient
RS.Open "select * from T1 inner join T2 on T1.Id = T2.num where datt >= #" & _
Format(DTPicker1.Value, "mm/dd/yyyy") & "# and datt <= #" & _
Format(DTPicker2.Value, "mm/dd/yyyy") & "#", DB, adOpenStatic, adLockOptimistic