Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

Outlook Get EntyID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anton Hengg - 16 Nov 2006 10:18 GMT
Hi,

I read the Outlook Inbox folder with the following code. According to the
Microsoft specification 24 columns should appear, among them the column
EntryID.
But only 20 columns are displayed. How do I get the column EntryID? Or is
there a code to create it?

Best regards
Anton

Public Function OpenExchange_Calendar()
   Dim ADOConn As ADODB.Connection
   Dim ADORS As ADODB.Recordset
   Dim strConn As String, i As Integer

   Set ADOConn = New ADODB.Connection
   Set ADORS = New ADODB.Recordset

   With ADOConn
       .Provider = "Microsoft.JET.OLEDB.4.0"
       .ConnectionString = "Exchange 4.0;" _
                           & "MAPILEVEL=Persönlicher Ordner|;" _
                           & "PROFILE=Outlook;" _
                           & "TABLETYPE=0;DATABASE=dbs.name;"
                           Debug.Print .ConnectionString
       .Open
   End With

   With ADORS
       .Open "Select * from [Posteingang]", ADOConn, adOpenStatic, _
              adLockReadOnly

       .MoveFirst
 '      Do Until ADORS.EOF
         For i = 0 To 24
           On Error Resume Next
           Debug.Print i;
           Debug.Print ADORS(i).Name, ADORS(i).Value;
           On Error GoTo 0
           Debug.Print
         Next i
   '      .MoveNext
  '     Loop
       .Close
   End With

   Set ADORS = Nothing
   ADOConn.Close
   Set ADOConn = Nothing

End Function
Sue Mosher [MVP-Outlook] - 30 Nov 2006 16:21 GMT
What specification? I'm not sure the Jet engine exposes EntryID. I have always considered it too limited for any practical use.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Hi,
>
[quoted text clipped - 48 lines]
>
> End Function
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.