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

Return 0 Value

$
0
0
Hi

I have written this , it should return 1 but it is returning 0 . I am using MS-Access

shiftdate = "02/03/2013"

In Database also there is one record with tdate = "02/03/2013"

str = "select count(*) from transact where tdate=#" & shiftdate & "#"
rs.Open str, cnn1, adOpenDynamic, adLockOptimistic, adCmdText
rcount = rs.Fields(0).Value

Thanks

Viewing all articles
Browse latest Browse all 21237

Trending Articles



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