sure and thank you
i see you're unbanned)))))))))))))))
everything works except this and i don't have the dashes in the code of course
---------------------------------------------
.Edit
.Fields("GrandTotal").Value = RowSum
.Update
---------------------------------------------
i see you're unbanned)))))))))))))))
Code:
Dim dbs As Database, tdf As TableDef
Dim fld As Field
Dim rst As DAO.Recordset
Dim i As Integer
Dim RowSum As Double
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("Mailboxes", dbOpenSnapshot)
i = 2
With rst
rst.MoveLast
rst.MoveFirst
Do While Not rst.EOF
i = 2
Do While i < (rst.Fields.Count - 1)
Set fld = rst.Fields(i)
If Not IsNull(fld.Value) Then
RowSum = RowSum + fld.Value
Else
RowSum = RowSum
End If
i = i + 1
Loop
rst.MoveNext
---------------------------------------------
.Edit
.Fields("GrandTotal").Value = RowSum
.Update
---------------------------------------------
RowSum = 0
Loop
rst.Close
End With
everything works except this and i don't have the dashes in the code of course
---------------------------------------------
.Edit
.Fields("GrandTotal").Value = RowSum
.Update
---------------------------------------------