AppActivate with Current Database name

  • Thread starter Matthew Pfluger
  • Start date
M

Matthew Pfluger

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
 
C

Clifford Bass

Hi Matthew,

Try this:

AppActivate CurrentDb.Properties("AppTitle").Value

Clifford Bass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top