Hi,
I'm new to SQlite in B4A and I'm trying to get the total amount of systollic value after entering values
into that column.
What am I doing wrong here ?
Please help me understand.
Thanks.
Here's the code ....
'declare cursor object
Dim Cursor1 As Cursor
'get sum
Cursor1 = SQL1.ExecQuery("SELECT sum(Systollic) FROM BP")
Cursor1.Position = 0
'display sum
lblResult.Text = Cursor1.GetInt("Systollic")
I get error message -- 'Systollic' does not exist. Available columns: [sum(Systollic)]
I'm new to SQlite in B4A and I'm trying to get the total amount of systollic value after entering values
into that column.
What am I doing wrong here ?
Please help me understand.
Thanks.
Here's the code ....
'declare cursor object
Dim Cursor1 As Cursor
'get sum
Cursor1 = SQL1.ExecQuery("SELECT sum(Systollic) FROM BP")
Cursor1.Position = 0
'display sum
lblResult.Text = Cursor1.GetInt("Systollic")
I get error message -- 'Systollic' does not exist. Available columns: [sum(Systollic)]