I created a Command Button in a Form of Access 2007 to run a Mail Merge. I used VBA script that provided by ajetrumpet. It worked in his sample database, but it didn't work when I tried in my database. I got the following error message:
"User-defined type not defined"
(Dim WithEvents oApp As...
I'm new to Access programming with VBA.
I thank you all for sharing your knowledge in this Forum that helped me a lot to solve my problems.
I look forward to learning more about VBA codes from the Forum.
Jashinta, Toronto, Canada