how do i activate the record selector in a form?

Davros

Registered User.
Local time
Today, 18:32
Joined
Sep 9, 2005
Messages
131
strange request
but i'm working on intergrated mapping at the moment. i can get the map to show in a form via using VBA to 'talk' to mapbasic. i have a lot of problems but i'm getting through them one by one. my main 2 are these

the map window in my form will not show UNTIL i click the record selector (the grey bar in a form on the left hand side). how can i activate the record selector using VBA? if i can put this code in the code that runs my map window then hopefully when the form appears the map will activate and 'fill' the window

as an aside

how do i close an external program using VBA. there does not seem to be much on this site about it and what i've found i could not get to run.

any help appreciated
 
What external progam are you trying to stop? Also how is it being opened?
 
hi
i'm not trying to stop the program and it's mapinfo. i can get the map to show within Access on a form (i'm not showing the code as it's a mess at the moment and i'm trying to sort it out) but i have to click the 'record selector' on the form to see the map window. the code executes on form_load. what i'm looking for is VBA code that will activate the record selector on the form when the form is loaded. that way when i excute the code i do not have to click on the record selector area to actually see the map window
any ideas?
 
anyone?
seems such a simple action and yet i'm stuck for an answer as to how to impliment it.

thanks in advance
 
this isnt simple at all, i dont think

integrating different programs is far from easy. once you fire up mapinfo - then in order for access to know what is going inside that program, mapinfo needs to expose its status etc to the world.

you wil need at the very least to set a reference to the mapinfo object library in your access references, and understand how this works. eg this is like controlling excel or outlook from access.

eg MS provides a lot of info about MAPPOINT which may or may not be a similar thing to mapinfo
 

Users who are viewing this thread

Back
Top Bottom