P
PF
Hi all,
i am using dcount() and dsum
to display the amount of record and a sum of a field in a database in a
textbox on a form.
i think it is faster to do that with a sql statement, am i right?
if i use a sql statement, is there a way like parameter passing
to return the result in a variable
i want something like
txtSumQty = docmd.runsql strsql
The only way i know to get the result on a sql sum statement is to
open a recordet and then find the value.
i would like a more direct single inline statement
Regards,
Pierre
i am using dcount() and dsum
to display the amount of record and a sum of a field in a database in a
textbox on a form.
i think it is faster to do that with a sql statement, am i right?
if i use a sql statement, is there a way like parameter passing
to return the result in a variable
i want something like
txtSumQty = docmd.runsql strsql
The only way i know to get the result on a sql sum statement is to
open a recordet and then find the value.
i would like a more direct single inline statement
Regards,
Pierre