J
Joanne
I am trying to print a document as a result of the user choice from a
combo box.
Here is my code
I keep getting a syntax error on on the strpath = current project
line.
I've tried parens in different spots, and quotes in different spots
but can't get rid of the message for 'expected bracketed etc'
Please take a look and get me pointed in the right direction
Thanks a great deal
Private Sub cboBenefits_AfterUpdate()
Dim strPath As String
Dim oWordApp As Word.Application
strPath = CurrentProject."C:\NMWorkPackage" & "\" &
Me!cboBenefits"
Set oWordApp = New Word.Application
oWordApp.Documents.Open strPath
oWordApp.PrintOut
End Sub
combo box.
Here is my code
I keep getting a syntax error on on the strpath = current project
line.
I've tried parens in different spots, and quotes in different spots
but can't get rid of the message for 'expected bracketed etc'
Please take a look and get me pointed in the right direction
Thanks a great deal
Private Sub cboBenefits_AfterUpdate()
Dim strPath As String
Dim oWordApp As Word.Application
strPath = CurrentProject."C:\NMWorkPackage" & "\" &
Me!cboBenefits"
Set oWordApp = New Word.Application
oWordApp.Documents.Open strPath
oWordApp.PrintOut
End Sub