Displaying a form in another Application

R

Robert Taylor

I am designing an application in another program and using
createobject to connect to an access database. What I want
to do is make it so that when you run this program a form
pops up for you to enter data, which goes into an access
database.

Everything works the way I want as far as opening the
database, but I have to click on the taskbar on the bottom
to switch the focus from the original application to the
database form and back again.

Does anyone know a good way through OLE automation to make
the program shift the focus to the newly opened database
form and back again so that to the end-user the
application appears to be creating the form?

Thank you.
Robert
 
T

TC

What language is the other program written in? Does it have an AppActivate
method (or similar)?

HTH,
TC
 
R

Robert Taylor

It is written in a version of basic similiar to an older
version of visual basic. It does have AppActivate, but
while it gives the database the focus it does not bring it
to be the top window, so all I end up with is a flashing
button on the taskbar.

Robert
 
T

TC

Robert, do an advanced google groups search for the thread entitled:

Begin Access to front of all applications

There is pertinent information in that thread. Do type "Begin" (although
they obviously meant "Bring").

HTH,
TC
 

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