Re: recordcount per date ? could you do that?
- From: "dokter cinta" <dokter.cinta@xxxxxxxxx>
- Date: 3 Oct 2006 21:26:48 -0700
select "date", count(*) as I group by "date" from myTable ?????
so if i choose the date between 01/01/2006 until 18/01/2006
i will know how much recordcount per date on 01/01/2006 , 02/01/2006,
03/01/2006, and more... ???
so where is on the sql statement to tell the informations of the
recordcount per date
look my code
start1 = DTPicker1.Value
start2 = DTPicker2.Value
strsql = "select * from room where date between #" & Format(start1,
"MM/dd/yyyy") & "# AND #" & Format(start2, "MM/dd/yyyy") & " #"
Set rsRoom = New Recordset
rsRoom.ActiveConnection = con
rsRoom.CursorType = adOpenStatic
rsRoom.CursorLocation = adUseClient
rsRoom.LockType = adLockOptimistic
rsRoom.Open strsql
lblcount.caption = rsroom.recordcount '<== the informations to show the
recordcount
but i dont know how to recordcount per date.
i want to know how much records per date
thanks...
please help me .......................
best regards
THE VB LOVERS FROM ASIA
Jeff Johnson wrote:
"David Kerber" <ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:MPG.1f8c14a3e7a91af5989a1e@xxxxxxxxxxxxxxxxxxxxxx
select "date", count(*) as I group by "date" from myTable
Flip the GROUP BY and FROM clauses....
.
- Follow-Ups:
- Re: recordcount per date ? could you do that?
- From: Jeff Johnson
- Re: recordcount per date ? could you do that?
- References:
- recordcount per date ? could you do that?
- From: dokter cinta
- Re: recordcount per date ? could you do that?
- From: David Kerber
- Re: recordcount per date ? could you do that?
- From: Jeff Johnson
- recordcount per date ? could you do that?
- Prev by Date: Re: How do i change numerics into binary numbers?
- Next by Date: VB6 Collections - Performance Issues
- Previous by thread: Re: recordcount per date ? could you do that?
- Next by thread: Re: recordcount per date ? could you do that?
- Index(es):
Relevant Pages
|