|
Question : DoCmd.RunApp ???
|
|
I'm trying to use the DoCmd.RunApp to open a Word document and run a particuar macro depending on how the data is filtered on a particular form. Here's the code I'm trying to use, but no dice. Any idea what I'm doing wrong?
Private Sub Label161_Click() Dim strStartWord Dim ReviewMonth
ReviewMonth = Me.MonthFilter
strStartWord = "C:\Program Files\Microsoft Office\Office\winword.exe /t I:\Forms\Database\Memos\NEWReviewMemo.doc /mMerge" & ReviewMonth
DoCmd.RunApp strStartWord End Sub
|
|
Answer : DoCmd.RunApp ???
|
|
try Shell strStartWord
instead of DoCmd.RunApp strStartWord
|
|
|