T
Tim
In Access 2002 am using the StoreID propertry, something
basically like this...
Private Sub x()
Dim intStoreID as Integer
Dim olMapi As Outlook.NameSpace
Dim intStoreID As Integer
Set olMapi = CreateObject
("Outlook.Application").GetNamespace("MAPI")
intStoreID = Nz(olMapi.Folders
("Main/Files/Jobs").StoreID, 0)
If intStoreID > 0 Then
(a bunch of code)
End If
Set olMapi = Nothing
End Function
This is working beautifully when the exchange server is
up. Today I discovered that when it's down, calling the
StoreID property sometimes causes Acess to hang. What's
strange it hangs NOT when StoreID is referenced but later -
- when the namespace object is destroyed or at the end of
the sub, whichever comes first.
I have tried many various sequences of commands, and the
StoreID property is the culprit. Leave it in and Access
hangs; take it out and no hanging. I have also tried all
kinds of error trapping without any luck. It seems to
hang about 50% of the time. There no rhyme or reason that
I can discern.
I would be delighted to find some simple way to check to
see if the Exchange server is available before accessing
this property. Any ideas???
Thanks for any help you can give!
Tim Scott
basically like this...
Private Sub x()
Dim intStoreID as Integer
Dim olMapi As Outlook.NameSpace
Dim intStoreID As Integer
Set olMapi = CreateObject
("Outlook.Application").GetNamespace("MAPI")
intStoreID = Nz(olMapi.Folders
("Main/Files/Jobs").StoreID, 0)
If intStoreID > 0 Then
(a bunch of code)
End If
Set olMapi = Nothing
End Function
This is working beautifully when the exchange server is
up. Today I discovered that when it's down, calling the
StoreID property sometimes causes Acess to hang. What's
strange it hangs NOT when StoreID is referenced but later -
- when the namespace object is destroyed or at the end of
the sub, whichever comes first.
I have tried many various sequences of commands, and the
StoreID property is the culprit. Leave it in and Access
hangs; take it out and no hanging. I have also tried all
kinds of error trapping without any luck. It seems to
hang about 50% of the time. There no rhyme or reason that
I can discern.
I would be delighted to find some simple way to check to
see if the Exchange server is available before accessing
this property. Any ideas???
Thanks for any help you can give!
Tim Scott