473,598 Members | 3,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access and Outlook

Hi,

I am trying to start a database that uses contact details from my Outlook
contacts information. Can anyone suggest how to look up all records in the
Outlook contacts and make a table in access with them that includes an
individual reference and then regularly look up new entries in the Outlook
contacts and add these records to the table.

Any help would be greatly appreciated.
May 31 '06 #1
4 1944
Just so you know: You can link directly to data in Exchange by using File |
Get Data | Link Tables...

In the dialog box that opens, open the "Files of Type" dropdown and select
Exchange().

If you're goin through Exchange, that might suggest some possibilities.

If you're on a local machine, you can get to your own Outlook stores by
going into a module, using Tools | References, and checking the box next to
Microsoft Outlook x.x Object Library. This gives you a way to get to that
data. You'd have to write code to do the kinds of correspondence checking
you refer to.

Take a look at one of these for a start.

For your local stores, this should give you some food for thought:

http://support.microsoft.com/?kbid=313787
May 31 '06 #2
If you link it, you have it and you don't have to make another table.

Jun 1 '06 #3
This would link the table fine, but my problem is that there would be no
unique identifier, hence why I need a primary key or something similar.
There may be seven John Smiths in the table and if I wish to attach a piece
of a data to one of them I cannot differentiate.

"Ron2006" <ro******@hotma il.com> wrote in message
news:11******** **************@ j55g2000cwa.goo glegroups.com.. .
If you link it, you have it and you don't have to make another table.

Jun 5 '06 #4
Given that constraint I found this from another post about Accessing
Outlook via Automation to get all fields:
This may give you what you need.
=============== =============== =============
You normally don't even get all of the built in fields when linking to
Outlook much less the user defined ones. They can be gotten via
automation
code though.

Below is a snippet from one of my routines where I am looking at a
public
contacts folder on our network. Within the For-Each loop you can see
where
I am looking at individual properties of each Contact object. The
built in
ones can be referenced directly, but if you notice we have one
user-defined
field named "FAX" (the last one) and to access that I use the syntax...

..UserPropertie s("FAX")
That same syntax would be used for all user defined fields.
***Start Snippet ****
Dim LoopCnt As Integer
Dim gobjOutlook As Object
Dim gobjNameSpace As Object
Dim objContactFolde r As Object
Dim objContact As Object
Dim AddEdit As String
Dim SuffixVar As String
Dim ObjContactItems As Object
Dim MyContactSearch Items As Object
'See if we have a Vendor Record Present. If not, cancel
If Len(Nz(Me.VMVN, "")) = 0 Then
MsgBox "No Vendor Information.", vbExclamation, "Operation
Cancelled"
Else
Set gobjOutlook = CreateObject("O utlook.Applicat ion")
Set gobjNameSpace = gobjOutlook.Get Namespace("MAPI ")
Set objContactFolde r = GetFolder("Publ ic Folders\All Public
Folders\Purchas ing\Supplier Contacts")
Set ObjContactItems = objContactFolde r.Items
Set MyContactSearch Items = ObjContactItems .Restrict("[CustomerID] =
'" &
Trim(Me.VMVN) & "'")
For Each objContact In MyContactSearch Items
With objContact
.CompanyName = Trim(Me.VMNAME)
.CustomerID = Trim(Me.VMVN)
.User4 = Trim(Me.VMVN)
.BusinessAddres s = Trim(Me.VMAD1) & vbCrLf & Trim(Me.VMAD2)
&
vbCrLf & _
Trim(Me.VMCITY) & ", " & Trim(Me.VMST) &
" "
& Trim(Me.VMZIP)
.OtherAddress = Trim(Me.VMRAD1) & vbCrLf & Trim(Me.VMRAD2)
&
vbCrLf & _
Trim(Me.VMRCTY) & ", " & Trim(Me.VMRST) & "
" &
Trim(Me.VMRZIP)
.BusinessTeleph oneNumber = Trim(Me.[VMTEL_])
.UserProperties ("FAX") = Trim(Me.VMFAX_)
.Save
End With
Next objContact
End If
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
=============== =============== ==========

Jun 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14902
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data in the format that I need it in order to create the reports that we use. So far this has proven to be successful for the reports that I am doing and the data that I am pulling into it. I just have one challenge that may require a lot of work and I...
2
4295
by: Bob | last post by:
Hi Everybody A tough one!!! Is there any way that incoming eMails (MailItems) into Ms Outlook can be used to automatically create records in a ms Access table or sub table. Smiley Bob
1
4143
by: Devonish | last post by:
I am composing an email with Access VB and then sending it from within Access. Everything works correctly (the email actually goes!) but Outlook ask some irritating questions that the user is required to answer. A summary of the relevant code is: Dim mailObj as Outlook.MailItem
3
2358
by: Strasser | last post by:
In Access2000 mass emailing worked perfectly (very powerful tool!). Doesn't work when using XP version of both Access and Outlook, even though I checked the box to ensure that I was sending the email. Any ideas? Thanks in advance.
47
4507
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small company and this is a big decision for us(!) It's not just the money it's committing to an new version of Access!
2
10515
by: mik.sjoblom | last post by:
Hello, I have developed a Access application that needs to read mail from Outlook, versions on Access and outlook are 2003. In the code i use mapi to connect to outlook. When i tries to read the subject of a message outlook displays "A program is trying to access e-mail adresses you have stored in Outlook. Do you want to allow this." And then i can allow access for max 10 minutes. My application is use scheduled statupm creating reports...
1
4327
by: charliej2001 | last post by:
Hi all My access database has import/export capabiltiy of contact details between outlook. The database is getting big now (1000+ contacts) and so are the outlook address books that have the contacts info in them. When I export contacts from access to outlook, it takes a long time because there are so many contacts in the Outlook address book, and it is checking all of these against the contacts coming in, so as to avoid duplicates....
10
2180
by: Walshi | last post by:
Hi all, I'm a relative newby to access and VBA etc. My forms and tables etc are working great and saving lots of time...However... I have two databases with the exact same table format. I want db1 to be used to input data by a remote operator, when she is ready I want her to be able to click a control button to email her new data to db2. This new data will be added to the table in db2 ready for further processing.
0
1583
by: NissanSE98 | last post by:
Hello, I'm building an asp.net application that will get contact information from an Access Database that is linked to microsoft exchange or outlook. I go to link tables in Access and choose outlook() and am able to link to the contacts data base. However, when I run my application locally, I get the error: No MAPI clients installed on this machine. Install a MAPI client such as Outlook. Well, Outlook is installed on the local machine but...
14
2765
by: ARC | last post by:
Hello All, I have a major application for quoting and invoicing that is written in Access 97 (both front and back ends). I have a user base of over 300 customers, and currently I don't require that they have Access 97, as I use the access 97 runtime scripts from Sagekey software. The main problems I've seen with Access 97 are the built in e-mail support for sending reports. Unless a user uses the MS Outlook 2000/XP method, they have to...
0
7899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8392
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8397
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8264
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6718
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.