473,416 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

mappoint looses forms focus

Gil
hello,
im automating mappoint through access to get mileage between two
address fields. when ever i call the function it makes mappoint the
focus, and i have to reclick the access screen to regain access forms
focus. how can i get access focus via vba and without having to click
the form?

i tried using docmd.selectobject acform, "myform" and me.setfocus . it
looks like it works by highlighting a text box however the mappoint is
still under focus and doesnt set the focus back to the form. if i hit
alt+f4 it will ask me if i want to close mappoint. thats how you can
tell for sure mappoint is still under focus.
any ideas?
if the mappoint app was hidden im sure it would solve this problem but
i do not want the mappoint app hidden. i want it open , but just
minimized, so the user can have the option to restore mappoint and play
around with it and than minimize it again.

any ideas?
thanks

Dec 19 '05 #1
1 2137
I am not sure what version of Access you are using, or the specifics of your
code, however, you may want to look at the AppActivate VBA function. In
Access 2003 for example, each form is given its own window. So you could
activate the actual form directly. For example:

AppActivate "MyForm", False

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"Gil" <gi*******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
hello,
im automating mappoint through access to get mileage between two
address fields. when ever i call the function it makes mappoint the
focus, and i have to reclick the access screen to regain access forms
focus. how can i get access focus via vba and without having to click
the form?

i tried using docmd.selectobject acform, "myform" and me.setfocus . it
looks like it works by highlighting a text box however the mappoint is
still under focus and doesnt set the focus back to the form. if i hit
alt+f4 it will ask me if i want to close mappoint. thats how you can
tell for sure mappoint is still under focus.
any ideas?
if the mappoint app was hidden im sure it would solve this problem but
i do not want the mappoint app hidden. i want it open , but just
minimized, so the user can have the option to restore mappoint and play
around with it and than minimize it again.

any ideas?
thanks
Dec 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MarsVoyager | last post by:
Hi, I want to change the value of a submit button when the onChange event is fired by a Radio Input. Problem is, it seems the value is modified in the gui only when the Radio Input looses focus,...
2
by: trapeze.jsg | last post by:
Hi. Is there anybody who have tried to use python to access Microsofts MapPoint soap services? I am trying hard but I have run into a big thick wall called md5 digest authentication. The...
2
by: anon | last post by:
Hi, I have just installed the micorsoft's mappoint .net sdk....how to start using the samples.....has anyone successfully gone through the entire cycle of installation to implementation...if yes,...
4
by: deko | last post by:
I have an address form in Access 2003 that contains the usual address information such as AddressLine1, AddressLine2, City, State, etc... I would like to put a button on this form that feeds the...
3
by: tom | last post by:
Hi All, We have an Access XP application in which we utilize automation to control MS MapPoint 2004. It works pretty well, for the most part. Now, we would really like to use the MapPoint...
1
by: Dave Brown | last post by:
Hi all, I am wanting to use the mappoint service from a usercontrol on a webpage, in development this works fine but when my control is deployed and it tries to call the mappoint service I get a...
2
by: Vasilis X | last post by:
Hello. I am using vb.net. On a form i have a picture box and i draw points, lines, arcs etc in it. When i minimize the form and then maximize it again or if the form looses the focus for any...
2
by: Gil | last post by:
I am automating mappoint in access and was wondering what is a better way to have the mappoint map running all the time: 1.call it as a seperate application OR 2. as an activex control within a...
7
by: Kath | last post by:
Hi, I hope this is the most relevant newsgroup for this post. I have a VB.NET app that uses the MapPoint component, and in my app I use pushpins to display/retrieve GPS locations....
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.