P
Patrick Pirtle
Well, this seems like it should be simple. So, I assume I'm
overlooking something small.
Here's my code:
Public Sub TestMapiTable()
Dim oRecordset As Object
Dim oTable As Object
Set oTable = CreateObject("Redemption.MAPITable")
oTable.item = Outlook.Session.GetDefaultFolder(olFolderContacts).Items
Set oRecordset = oTable.ExecSQL("SELECT * from Folder")
While Not oRecordset.EOF
Debug.Print (oRecordset.Fields("Email1DisplayName").Value)
oRecordset.MoveNext
Wend
End Sub
The line beginning "Set oRecordset = oTable.ExecSQL"
gives me an error "Object doesn't support this property
or method." TIA for any help as to what I'm missing.
____________________________________________
The impossible just takes a little longer...
overlooking something small.
Here's my code:
Public Sub TestMapiTable()
Dim oRecordset As Object
Dim oTable As Object
Set oTable = CreateObject("Redemption.MAPITable")
oTable.item = Outlook.Session.GetDefaultFolder(olFolderContacts).Items
Set oRecordset = oTable.ExecSQL("SELECT * from Folder")
While Not oRecordset.EOF
Debug.Print (oRecordset.Fields("Email1DisplayName").Value)
oRecordset.MoveNext
Wend
End Sub
The line beginning "Set oRecordset = oTable.ExecSQL"
gives me an error "Object doesn't support this property
or method." TIA for any help as to what I'm missing.
____________________________________________
The impossible just takes a little longer...