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

No Of records

$
0
0
hi

I am using Sql Database . I count no of days for a particular date to generate Series

str = "select count(*) from temp where adate='" & CDate(tmpdate) & "'"

If for a particular day i am entering record it gives me no 1 & then i enter another record it gives me 2.

Problem is when i restart program and tmpdate is same it should give me next no 3 , but it gives me 1.

Date format on server is MM/dd/yyyy.

In the backend adate is stored as 2014-03-16 13:32:57.000

tmpdate is i am getting like this --
tmpDate = cnn1.Execute("Select GETDATE()")(0)

Thanks

Viewing all articles
Browse latest Browse all 21238

Trending Articles



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