>Larry,
>
>Thanks for the news! I haven't touched Notes for couple of years. However, at my new job I have to use Notes again :(.
>After reading your post and after verifying our version, I modified a program that I wrote a couple of years ago. Unfortunately it gets stuck on the following line:
>
>loDb = loNotes.GetDatabase("", "") && set db to database not yet named
>loDb.openmail && set database to default mail database
>etc...
>
>If I instantiate Notes with CreateObject("Notes.Notessession"), GetDatabase("", "") works, but if I use CreateObject("Lotus.Notessession"), GetDatabase() expects a database name. Is there an easy way to get the name of the default mail database in order to write some generic code?
>
>TIA
Try:
loDBDir = loNotes.GetDBDirectory("") && Get object
loDb = loDBDir.OpenMailDatabase() && Get default mail database for current user
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao