Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27489

group timestamps into intervals

$
0
0
Hi,
Im trying to group timestamps by a interval of say 30 mins

im using Access as my data base. an example to work with of the tables are

dater - date something happened
timer - time it happended
des - description
price - price

the statement I have tried is
Code:

sql = "SELECT timers,des,price,dater FROM log WHERE dater = '" & DateTimePicker1.Value.ToShortDateString & "' GROUP BY DATEPART(MINUTE," & DateTimePicker1.Value.ToShortDateString & ")"
im looking to make it work as it errors or even a work around in VB code iteself would be awesome

Viewing all articles
Browse latest Browse all 27489

Trending Articles



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