Solved

Copying data from Access to Outlook

Posted on 1998-08-03
9
195 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
 
LVL 1

Expert Comment

by:TMiller
ID: 1621268
How do you transfer the table?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
Create high volume marketing opportunities using email signatures with these top 10 DOs and DON'Ts of email signature marketing.
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now