Hi All, I've failed this afternoon to find a solution to this problem. We have an Access application that works fine in Access 2010 but fails in 2016 when we open a form with the Crystal ActiveX viewer on. When I say fail there is no error code it runs but the viewer is blank.
From various forms in the application we open this viewer form and pass in a Crystal report. However in 2016 the Crystal viewer appears to be empty.
The viewer is "Crystal ActiveX Report Viewer Control 10.0" but I have tried changing this (and the reference) to Crystal ActiveX Report Viewer Control 11.5".
The main section of code is below.
Thanks in advance.
Dan
From various forms in the application we open this viewer form and pass in a Crystal report. However in 2016 the Crystal viewer appears to be empty.
The viewer is "Crystal ActiveX Report Viewer Control 10.0" but I have tried changing this (and the reference) to Crystal ActiveX Report Viewer Control 11.5".
The main section of code is below.
Thanks in advance.
Dan
Code:
'Set Crystal report
Set crApp = New CRAXDRT.Application
Set crReport = crApp.OpenReport(strCurrentConnection & strReportName, 1)
crReport.ConvertNullFieldToDefault = True
crReport.DiscardSavedData
crReport.EnableParameterPrompting = False
crReport.ReadRecords
DoCmd.OpenForm "frmCrystalReports_Viewer"
With Forms!frmCrystalReports_Viewer.CrystalActiveXReportViewer_General
.ReportSource = crReport
.ViewReport
End With
ExitRoutine:
Set crReport = Nothing
Set crApp = Nothing