I have written some VB code to query an Access database using SQL and it works ok.
I've tried to use the code in a Word macro but VBA doesn't recognise the database functions. Is it possible to get this functionality in a Word macro?
Set reference to the Access Type Library. Got to the VBE by hitting Alt+F11. Gp tp tools, references and select Microfsoft Access 8.0 or 9.0 as applicable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.