Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21143

[RESOLVED] would you please correct me this query?

$
0
0
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 ...
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

Thanks a lot

Viewing all articles
Browse latest Browse all 21143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>