prince_j325
Member
Here are the sample result in Log.
4/10/2020
521
81
4/11/2020
555
82
4/12/2020
607
83
4/13/2020
665
84
4/14/2020
714
85
4/15/2020
784
86
4/16/2020
840
87
4/17/2020
906
** Activity (mdlcharts) Resume **
4/10/2020
521
81
4/11/2020
555
82
4/12/2020
607
83
4/13/2020
665
84
4/14/2020
714
85
4/15/2020
784
86
4/16/2020
840
87
4/17/2020
906
** Activity (mdlcharts) Resume **
B4X:
Dim sql As String
sql="SELECT * FROM tblCases WHERE strftime('%m', CaseDate)='4' " But when I use this code it does not return data.
' sql="SELECT* FROM tblCases WHERE CaseDate ='4/22/2020'"
' sql="SELECT* FROM tblCases" I used this first to display all data in Log
cursor1 = SQL1.ExecQuery(sql)
For i = 0 To cursor1.RowCount - 1
cursor1.Position = i
Log(cursor1.GetString("caseid"))
Log(cursor1.GetString("CaseDate"))
Log(cursor1.GetString("CaseQty"))