PDA

View Full Version : Error on map with multiple destinations


karen183060
11-04-2009, 07:26 AM
Hi

I have used the extension for mapping many times before without much of a problem. But I now have a simple map using coordinates for positioning which works perfectly well for single destinations but as soon as I use multiple destinations the MoveFirst() code is throwing an '80040e18' error after returning the data for the last record in the set. The only difference with this map is the data that 'drives' it is returned from a stored procedure rather than a recordset. Other than that it is perfectly standard.

Any help would be greatly appreciated!

Karen

karen183060
11-04-2009, 08:05 AM
Hi

I have used the extension for mapping many times before without much of a problem. But I now have a simple map using coordinates for positioning which works perfectly well for single destinations but as soon as I use multiple destinations the MoveFirst() code is throwing an '80040e18' error after returning the data for the last record in the set. The only difference with this map is the data that 'drives' it is returned from a stored procedure rather than a recordset. Other than that it is perfectly standard.

Any help would be greatly appreciated!

Karen

I have now tried it with a recordset and I get the same problem.

Vexed :(

Jason Byrnes
11-04-2009, 12:01 PM
Add the following to the recordset code:
RecordsetName_cmd.ActiveConnection.cursorLocation = 3


to force it to use a static cursor type.