Hi,
I was looking over the example for the mysql usage posted and was trying to determine how to get a field that is calculated on the fly... for example, my sql string is:
strSql= "SELECT sum(amount) As gstDeposit FROM p50380009 where TRANSACT = 'DEPOSIT' or TRANSACT = 'CASH RECEIPTS';"
' rslt = Query.Run(strSql)
sRecordsId = Records.Open(gsDatabase, strSql)
when the rslt line is un-commented, it returns TRUE, so I know the sql string works. But, I never get a sRecordsId.
NOTE: gstDeposit does not exist in the table, that is, there is no field named gstDeposit, mysql calculates it when the query is run.
When I run the query directly in mysql (via ssh), I do get a result for gstDeposit. How do I get that value to be passed back through kbasic?