Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Inbox from Access Application

Status
Not open for further replies.

terre

Technical User
Feb 2, 2003
97
AU
I am trying to access the inbox from Outlook from Access.

I found this code, but when I run it I get A message

Error 3170 Couldn't find installable ISAM.

Any suggestions?

Function AttachMail()
Dim db As Database
Dim td As TableDef
On Error GoTo Errorhandler
Set db = CurrentDb()
Set td = db.CreateTableDef("tblInbox")

' Substitute your own MAPILEVEL, DATABASE and PROFILE arguments.
td.Connect = "Exchange 4.0;MAPILEVEL=Mailbox - Nancy Davolio|;"
td.Connect = td.Connect & "DATABASE=C:\Program Files\Microsoft "
td.Connect = td.Connect & "Office\Office\Samples\Northwind.mdb;"
td.Connect = td.Connect & "PROFILE=Microsoft Outlook"

' Substitute the name of the folder you want to attach.
td.SourceTableName = "Inbox"

db.TableDefs.Append td
Application.RefreshDatabaseWindow
MsgBox "Table Appended!"
Exit Function
Errorhandler:
Msgbox "Error " & Err & " " & Error
Exit Function
End Function
 
Are you running Access 97? If so, this error message would suggest you haven't downloaded the free Microsoft Exchange/Outlook import/attach wizard (this functionality is part of the core Access product in A2000 and above). To download the add-in, browse to and search for wzmapi80.exe

Note that each user using the database will have to install the add-in on his/her PC. [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top