G
Guest
Can anybody help untangle this syntax, please?
I can specify either the strSQL or the strDir, but want to do both
Private Sub cmdMergeAllLw_Click()
strSQL = "Select * from qryNotifConcat WHERE CaseID =" & [ContactID]
strDir = "Lawyer\"
Me.Refresh
MergeAllWord ("Select * from qryNotifConcat WHERE CaseID =" &
[ContactID])
'Note that you could use a condtion in the above sql
End Sub
This is from the Kallal word merge which works great with this code or with
the following:
MergeAllWord "Lawyer"
I want each procedure I call to use its own directory of merge documents.
There is a MergeSingleWord and a MergeAllWord.
How do I specify the directory "Word\Lawyer\" for the word doc to come from?
When I use MergeAllWord ("Select * from qryNotifConcat WHERE CaseID =" &
[ContactID],"Word\Lawyer\") the error msg is "expected =". If I put in
strDir="Word\Lawyer\" I get "expected expression" or "end of statement".
Thanks in advance - this is whacked.
I can specify either the strSQL or the strDir, but want to do both
Private Sub cmdMergeAllLw_Click()
strSQL = "Select * from qryNotifConcat WHERE CaseID =" & [ContactID]
strDir = "Lawyer\"
Me.Refresh
MergeAllWord ("Select * from qryNotifConcat WHERE CaseID =" &
[ContactID])
'Note that you could use a condtion in the above sql
End Sub
This is from the Kallal word merge which works great with this code or with
the following:
MergeAllWord "Lawyer"
I want each procedure I call to use its own directory of merge documents.
There is a MergeSingleWord and a MergeAllWord.
How do I specify the directory "Word\Lawyer\" for the word doc to come from?
When I use MergeAllWord ("Select * from qryNotifConcat WHERE CaseID =" &
[ContactID],"Word\Lawyer\") the error msg is "expected =". If I put in
strDir="Word\Lawyer\" I get "expected expression" or "end of statement".
Thanks in advance - this is whacked.