A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

AppActivate with Current Database name



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2009, 10:34 PM posted to microsoft.public.access.tablesdbdesign
Matthew Pfluger[_2_]
external usenet poster
 
Posts: 36
Default AppActivate with Current Database name

I have a database app that calls other applications through COM. One of
these applications steals focus, and I want to restore focus to the Access
application. The Access application has a Database name, and that seems to
cause the AppActivate command to not function correctly. Can anyone explain
how to set focus back to the Access database if it has its own Application
Title?

Thanks,
Matthew Pfluger
  #2  
Old March 4th, 2009, 06:59 PM posted to microsoft.public.access.tablesdbdesign
Clifford Bass[_2_]
external usenet poster
 
Posts: 1,295
Default AppActivate with Current Database name

Hi Matthew,

Try this:

AppActivate CurrentDb.Properties("AppTitle").Value

Clifford Bass

"Matthew Pfluger" wrote:

I have a database app that calls other applications through COM. One of
these applications steals focus, and I want to restore focus to the Access
application. The Access application has a Database name, and that seems to
cause the AppActivate command to not function correctly. Can anyone explain
how to set focus back to the Access database if it has its own Application
Title?

Thanks,
Matthew Pfluger

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.