MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Problem with ImportData - Access to fast?

This is a discussion on Problem with ImportData - Access to fast? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi! I'm looking for help for a curios problem. To generate a couple of maps - each with different locations ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-12-2006
Junior Member
White Belt
 
Join Date: Jul 2006
Posts: 2
Problem with ImportData - Access to fast?

Hi!

I'm looking for help for a curios problem.

To generate a couple of maps - each with different locations - I have the following loop in Access VBA:

While
Delete Dataset
Fill a table with locations
DataSets.ImportData (the table)
save the map
Wend

The problem is, that the Mappoint dataset always misses one recordset. It works fine, if i put a Stop in the code and continue manually:

While
Delete Dataset
Fill a table with locations
STOP
DataSets.ImportData (the table)
save the map
Wend

So, I guess, that the code is to fast and the work on filling the table is not really finished, when the table is imported.
Does anybody know, if there is a command like refresh or update the table, which I can insert before importing the table into Mappoint.

Any help is appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-12-2006
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,503
Blog Entries: 3
That's strange.

Maybe you can put in a wait statement just to pause for a second or two?

Also, maybe it is possible to populate multiple temporary tables first and then do the business of making maps after the temporary tables are finished populating?

good luck

Eric
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-12-2006
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,351
Blog Entries: 33
Are you trapping exceptions? I've recently had a problem where I was able to feed data to Excel faster than Excel could handle it (Excel 2003, and if the user was scrolling/etc at the same time).
This threw back an exception that could be caught. If the error is the "edit in progress" error (in this example) then I paused 500ms and tried again. Otherwise I gave an error to the user.

Could it be something similar?

Also, if you're auto-generating the table, you could always kludge it with a dummy row!

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
access, fast, importdata, problem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Fast way to add radius? nomad_33fw MapPoint Desktop Discussion 1 06-10-2005 07:55 AM
How to choose Fast, Short or Preferred itineray Anonymous MapPoint Desktop Discussion 1 11-10-2004 03:14 AM
Problem with mappoint in Access Dazzer MapPoint Desktop Discussion 0 12-04-2003 04:27 AM
Is there a fast way of adding pushpins? matt1168 MapPoint Desktop Discussion 3 07-24-2003 09:44 AM
problem with linking to access Anonymous MapPoint Desktop Discussion 1 06-19-2003 05:32 PM


All times are GMT -5. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
MP2K Magazine
Visitor Map



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67