Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the result of an aggregate function using DAO

Status
Not open for further replies.

xjs

Programmer
Apr 4, 2002
21
US
This seems to be an easy one but I can't find what I'm looking for. Can anyone provide the syntax to reference the result of an SQL statement that uses an aggregate function with DAO?

SELECT SUM(Cost) FROM table...

How do I reference or get the result of "SUM(Cost)" from this query.

Thanks.
 
i found the snytax i was looking for, thanks.

rs.Fields(0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top