Dim dbs As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL as String
Dim answer As Currency
Set dbs = CurrentDb()
strSQL = "SELECT SUM( field1) FROM table"
Set rs = dbs.OpenRecordset(strSQL, dbOpenSnapshot)
answer = rs.fields(0).Value
Set rs = Nothing
Set dbs = Nothing