I'm trying this technique using an example from Access 2000: Developer's Handbook Volume 1: Desktop Edition.

I get a compile error User defined type not defined when I run it.

Sub PrintInvoiceWithWord(frmDriverData As Form_DriverData)

' Launch Word and load the driver application doc
Set objWord = New Word.Application

The debugger takes me to New Word.Application at the end. I noticed when I typed this in manually Word is not available after New.

Can someone point me in the right direction to correct this. Thank you.