G
Guest
Office 2000
I am using D. Kallal worde merge code and am getting the following error for
when pointing to the following line
Call RidesMergeWord(strDirPath & Me.lstFiles & ".doc", bolSingle)
the error highlights "bolSingle"
with
Compile error:
ByRef argument type mismatch
The folowing references are checked
Visual Basic for applications
Microsoft Access 9.0 library
Microsoft DAO 3.6 Object library
Microsoft data access components installed version
Microsoft Visual basic for applications Extensibility 5.3
Complete code
Dim bolSingle As Boolean
' if in single mode, then we *merge the doc
If IsNull(Me.lstFiles) = False Then
bolSingle = Nz(Me.OpenArgs, "") = "single"
' If bolSingle = False Then
' MsgBox "After document loads. In word select Tools, then select
merge", vbInformation
' '
' End If
Call RidesMergeWord(strDirPath & Me.lstFiles & ".doc", bolSingle)
' DoCmd.Close
Else
MsgBox "You need to select a Word document", vbExclamation, "Word Merge"
End If
Thanks in advance
I am using D. Kallal worde merge code and am getting the following error for
when pointing to the following line
Call RidesMergeWord(strDirPath & Me.lstFiles & ".doc", bolSingle)
the error highlights "bolSingle"
with
Compile error:
ByRef argument type mismatch
The folowing references are checked
Visual Basic for applications
Microsoft Access 9.0 library
Microsoft DAO 3.6 Object library
Microsoft data access components installed version
Microsoft Visual basic for applications Extensibility 5.3
Complete code
Dim bolSingle As Boolean
' if in single mode, then we *merge the doc
If IsNull(Me.lstFiles) = False Then
bolSingle = Nz(Me.OpenArgs, "") = "single"
' If bolSingle = False Then
' MsgBox "After document loads. In word select Tools, then select
merge", vbInformation
' '
' End If
Call RidesMergeWord(strDirPath & Me.lstFiles & ".doc", bolSingle)
' DoCmd.Close
Else
MsgBox "You need to select a Word document", vbExclamation, "Word Merge"
End If
Thanks in advance