Solved

Copying data from Access to Outlook

Posted on 1998-08-03
9
229 Views
Last Modified: 2010-04-08
I have been endeavouring to place data from tables within Access into an Outlook contacts folder.  The process works OK, but it's the time it takes that bothers me.

I have about 20000 records to copy, so this should take about 6 hours.  When I first set the routine in motion the records are transferred at the rate of about one per second.  I leave the program running overnight, an no-one else is on the network.  When I return in the morning some 16 hours later it is only up to the letter K, and is transferring at the rate of one record every 1.5 minutes.

Is this because it is a flat file and must walk through all the records before adding a new one, or have I got something wrong?
0
Comment
Question by:piggles
9 Comments
 
LVL 2

Expert Comment

by:Serg
ID: 1621265
Could it be that some files are bigger then others?
Perhaps you just have to wait.
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 100 total points
ID: 1621266
When the records are loaded, they are first loaded into memory.. Memory management just isn't being managed very well.. just wait... 22000 records is a lot of processing, especially for a desktop system... See if you can run it on the server.
0
 

Author Comment

by:piggles
ID: 1621267
Hi Serg and MasseyM - thanks for replying.

I still have a major problem.  I take the point about memory management, but on looking at the amount of data which was actually processed, I find there were only just over 3000 records transferred when I stopped it at the letter K as outlined above.

Surely if the routine is going fast at the start it should continue at the same rate??  I did a re-run overnight last night on the server with virtually the same result.

The problem is now compounded by the fact that when a user in Access edits a record it takes up to 8 minutes to effect the change in Outlook!! (That's in the 3000 record table).  I transferred another Access table with 900 records to Outlook without any trouble, and editing that one from Access only takes about 10 seconds to make the changes in Outlook.

Any more ideas??


0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 1

Expert Comment

by:TMiller
ID: 1621268
How do you transfer the table?
0
 
LVL 1

Expert Comment

by:TMiller
ID: 1621269
How do you transfer the table?
0
 

Author Comment

by:piggles
ID: 1621270
Hi TMiller - thanks for the reply.  I have a routine which creates a Contact in Outlook from the data in Access.  I use a For...Next loop to copy all the records from Access.

When the user edits a record in Access, the routine looks for the corresponding record in Outlook, deletes it, then replaces it with the new data.
0
 
LVL 1

Expert Comment

by:TMiller
ID: 1621271
For .. Next I assume you are using VB, or is it an MSAccess module (sorry, I'm not too familier with the MS' Visual stuff)?

I would like to do something similar (as far as connecting to Outlook is concerned), and so I would love to see the few lines of codes regarding the Outlook object creation.

Fooling around with it, I might find a solution to your problem.

Thanks
0
 

Author Comment

by:piggles
ID: 1621272
Hi TMiller

If you'd like to give me your email address I'll send you the code
0
 
LVL 1

Expert Comment

by:TMiller
ID: 1621273
Thanks. adimiller@attmail.com
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question