Article ID: 112767
Article Last Modified on 10/29/2003
' Note the time-out has to be long enough to allow for the print
' to complete or an error will occur.
Sub Command1_Click ()
Text1.LinkTimeout = 600 'Set DDE Time-out for 60 Seconds
Text1.LinkTopic = "MSACCESS|SYSTEM"
Text1.LinkMode = 2 ' Establish manual DDE link to Microsoft Access.
Text1.LinkExecute "[OPENREPORT Catalog]" 'Open and Print Report
'Uncomment the next line to show a report with a where clause
'Text1.LinkExecute "[OpenReport Freight Charges,,, [Order ID]=10506]"
Text1.LinkMode = 0 ' Terminate the DDE link to Microsoft Access
End Sub
Please note that for Microsoft Access version 1.1, the link topic needs
to be ACCESS|SYSTEM.Additional query words: 3.00
Keywords: KB112767