Page 1 of 1
Display the result of executing sql statement in the text field
Posted: Sat Aug 20, 2011 5:42 am
by vbtux
Hi,
my code sql is:
select count(F1) from Table1
I wanna know is it possible to display the result of executing sql statement in the text field ?
Thank you
Display the result of executing sql statement in the text field
Posted: Mon Aug 22, 2011 2:29 am
by HighAley
Hello.
vbtux wrote:my code sql is:
select count(F1) from Table1
I wanna know is it possible to display the result of executing sql statement in the text field ?
You can do it in 2 ways:
1. Use this expression in text box {Totals.Count(Table1)}
2. - Create new Data Source.
- In Select Data windows press New Query.
- Write next query select count(F1) cnt from Table1
- Press Retrieve Columns
- Use next expression in text box {DataSource1.cnt}
Thank you.
Display the result of executing sql statement in the text field
Posted: Wed Aug 24, 2011 1:28 am
by vbtux
Thank a lot. I do not know why I have not thought of that.:biggrin:
Display the result of executing sql statement in the text field
Posted: Wed Aug 24, 2011 6:27 am
by Andrew
Hello,
Have a great day!