Hi,
I'm trying to get the result from a DoCmd.RunSQL(sqlstr)to be recorded inside a variable. How do I do that ?
The SQL Query: "Select SUM (TotalCost) as Total from Sales".
txtTotal = ???? <- how to insert the result of the SQL query to this variable
Thanks in advance,
Vito
I'm trying to get the result from a DoCmd.RunSQL(sqlstr)to be recorded inside a variable. How do I do that ?
The SQL Query: "Select SUM (TotalCost) as Total from Sales".
txtTotal = ???? <- how to insert the result of the SQL query to this variable
Thanks in advance,
Vito