Thank you very much "Mats Hasselquist" for your help about "help me show the total...."..but i can ask

once more times, thank you very much. i’ve finished the manager’s request. but as you said i face the problem of performance speed with users has the large mailbox when they click the item. So may i ask you the other solution.

I know the idea but i don’t know how to do it. I can tell you about my idea :

As I know, the total size of all documents sizes is also the size of file “.nsf”, is that right ? And when user click the right button mouse tho select “the document properties” on “View-> all documents” item, and they choose the “Database” → click tab “i” for getting information, they easy and quickly to know the total number and size of all documents" And For example when user is at “the inbox” item, user click “ctrl+a” to select all mail documents, the lotus notes display the total number of mails “very quickly” at the status bar.

So we no need to uses your algorism to relsove,and we can use the other simple algorism to know the total numbers and size of documents of inbox by “reading” it through the “system of lotus notes” ? Can you help me ? i need solution for only “View → all documents” item is enough and very good.

Once more times, thank you very much for your help. if you don’t have the other solutions to reslove, no problems , i always thanks to you.

Best regard

Subject: thank you very much “Mats Hasselquist” for your help about “help me show the total…”…but i can ask

We can make a rougher solution. The size of the database is the size of the documents+design+whitespace+some more stuff.The design for the mail database is appr. 13MB.

A faster version of the code at the cost of precision is

Dim Db As NotesDatabase

Dim View As NotesView

Dim Size As Long

Dim Count As Long

Set View=Source.View

Set Db=View.Parent

Count=Source.View.AllEntries.Count

Size=Db.Size*Db.PercentUsed/1000000 - 14

Print Cstr(Count) " documents in database. Size=" & Cstr(Size)& “MB”

I use View.AllEntries.Count instead of Db.AllDocuments.Count because you can set in the preferences to not show calendar entries in the All Documents view. The -14 is the size of the database design and use PercentUsed to get a correct value if the user have deleted a lot of documents but the database hasn’t been compacted yet.