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!

Need result of aggregate function on form 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...

I want to update the value of a text field on a form but am not sure how to reference or get the result of "SUM(Cost)" from this query.

Thanks.

 
i think i'm in the wrong forum but i found the syntax i was looking for, thanks.

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

Part and Inventory Search

Sponsor

Back
Top