Hi all,
I'm trying to get data from my database with this code
It works fine until I want to add another field into this code like:
then, all bets are off.
An error keeps telling me to use GROUP BY or something likes that which I have very little understand about. Hope you can tell me how!!!
Thanks!
I'm trying to get data from my database with this code
Code:
mySQL = "SELECT Count(*) AS total_count FROM tblTechSupports " _
&" WHERE DateTime = '" & get_day & "' " _
&" AND charged = 1"
It works fine until I want to add another field into this code like:
Code:
mySQL = "SELECT Count(*),ID AS total_count FROM tblTechSupports " _
&" WHERE DateTime = '" & get_day & "' " _
&" AND charged = 1"
then, all bets are off.
An error keeps telling me to use GROUP BY or something likes that which I have very little understand about. Hope you can tell me how!!!
Thanks!