Hi
I have an error message in access 97 database and I was hoping that someone can help me with this (i've been searching the answer but seems like I couldn't find the right answer). When I clicked the open word document button on one of the form, I got "User defined type not defined" error message. Here is the code that connected to the button
I went to the references properties on the menu bar and this is the list which are selected:
visual basic for applications, microsoft access 8.0 object library, microsoft DAO 3.6 object library. could someone help me please? Thank you so much in advance.
I have an error message in access 97 database and I was hoping that someone can help me with this (i've been searching the answer but seems like I couldn't find the right answer). When I clicked the open word document button on one of the form, I got "User defined type not defined" error message. Here is the code that connected to the button
Code:
Private Sub openWordButton_Click() <------ highlighted in yellow
Dim objWord As Word.Application <------ highlighted in yellow
Set objWord = CreateObject("Word.Application")
With objWord
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open ("i:\sales.doc")
visual basic for applications, microsoft access 8.0 object library, microsoft DAO 3.6 object library. could someone help me please? Thank you so much in advance.
Comment