473,772 Members | 2,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.selectobj ect 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 2151
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*******@gmai l.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.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.selectobj ect 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
1625
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, not when its value is changed by the user. How can I make the value on the submit button change immediately upon action on the radio input and not when focus changes ? Thanks...
2
2525
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 MapPoint service uses rfc2617 to authenticate the user. I have a working account for this which works using C# dotnet and Borland Delphi 6.0. When I try to authenticate using python it fail. Here is what I do to provoke the rfc2617 challenge:
2
2024
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, could you please help me by providing some sample code n pointers to get started.....i have hopelessly searched online for tutorials but found nothing......also wat is the difference between mappoint .net and the mappoint 2004 which cost around...
4
8389
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 address info into MapPoint, along with a fixed return address, and gets driving directions - or at least get a map of the destination. I have the MapPoint software, but have not used it. Will MapPoint provide driving directions, or just a map? ...
3
2353
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 Control in our application to give our users active maps to interact with, but the control's help page explicitly states that it is NOT for use in Access: (With MapPoint 2004, the MapPoint Control is supported only in
1
1444
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 security exception, Anyone any thoughts/experience with this ? thx
2
1699
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 reason all graphics are gone and i have to redraw them. Is there a way to make my application to display the graphics all the time?
2
2143
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 form in access. Both will give me the same data results, but I am more concerned about performance. Any ideas? Thanks,
7
5693
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. Occasionally, when I call: objMap.Distance(locNorthPole, locX) my code catches an exception that's raised, the exception is:
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10264
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7461
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4009
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2851
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.