Question : How do I have Word query Access

This is what I have done:

1.      I created a Word document to print from.
2.      Created an Access database Part#: is the index field.  

What I want to be able to do:

1.      Type in the Part #.
2.      Have the Part # address the database and populate the Status/Description field.

Can you tell me how to accomplish this?  This project is urgent, please let me know if you can help. I’ll need step by step instructions.

Thank you,
Waalee Rashid

Answer : How do I have Word query Access

here you go.
I wrote a macro to connect to you database and receive the info you need - hope so.

I only have Office 2002, but I think it will work with word 2000, too.
Maybe you need to change the ADO-version (used ADO 2.6).

...and of course activate macros in word. I recommend to set intermediate level, so the user is asked if she wants to run the macro. You can't set macro-security level per file exclusively - correct me if I am wrong.

I used form-fields to get the information - info is gathered on text-leave event.
You need to have set the lock on fields to execute macros. In edit mode they are not fired.

Let me know if it fits your needs :)

You have to check, if each field works by yourself ;)
 
connect from word to access
 
Random Solutions  
 
programming4us programming4us