Open a form in Word

G

Gui

Hello everybody!

I have a little problem with my application. This is a little programm I made
to manage orders, clients, and most of all terminology lists (multiplingual
glossaries,..). In this programm, I have a form which permits me to enter
some new words and an other one to search words in my lists. Now, to be
faster, I'd like to open this form directly from Word, so that I could for
example mark a word in a document and by clicking on a macro, this word would
be copied, the search form opened, and the word directly pasted in a textbox
provided on the form for the search function. All right?!?!? I thought, it
wouldn't be difficult but it is. I can open the form from Word but the form
does not appear on the screen, I can see that it's open but if I do not click
on it, it doesn't appear: I would like to have it directly on the screen and
when I close it, directly see the word document. I must say that my access
application is always running on my computer because I use it very often, but
it should be possible to remain focused on a particuliar access form and then
directly on a word document even if access is still running, what do you mean?
?
I hope, my explanations were clear enough......
If somebody can help me, I'll be very grateful

Thanks
Gui
 
M

Mr B

If you are already opening the document and have it come to focus when you
click on it, the you most like likely just need to make Word the active
window. Something like:
wordApp.Activate

wordApp above is an object variable refering to Word.
 
Top