Access says that user type not defined

Joined
Sep 24, 2005
Messages
2
Reaction score
0
Hi I am fairly new to VBA and am trying to edit a word template in Access. I have the code ready but when I try to dim the object:
Dim objWord as Word.Application
Access returns an error user type not defined.

I know that in excel I can add references for such things but do not know the library name within access as they differ slightly.

Sorry if question a bit newbish!
 
Joined
Jun 13, 2005
Messages
148
Reaction score
0
add references

yopu can add references by vieing the code editor, selectig tools, then references

ive never played with word thourhg acess, but two references stick out...

microsoft office 9.0 object library
microsoft word 9.0 object library

check the boxes next to them, it sdhould eliminate errors
 

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

Similar Threads


Top