Am using Access db with VB 6 and Crystal Reports. CR9 does not play nice with OS 7 64bit, all reports cause the program to crash. And when using CR XI, the newer version of the report writer, in three of the reports on name tags, this is the error msg ‘Can not find QE property’.
The form and report use a Union All Select query.
SELECT FirstName, LastName, MaidenName, ClassYear, ClassPhoto, ClassYear as SortYear, Lastname AS SortName, 1 AS SortOrder FROM Members WHERE NumAttend>0 UNION ALL SELECT Spouse, LastName, Null, Null, Null, Classyear, Lastname, 2 FROM Members WHERE NumAttend>1 ORDER BY SortYear, SortName, SortOrder
If the code is commented in the form and the report, the name tags print without photos.
This code in either the form
Private Sub crSection_Format(ByVal pFormattingInfo As Object) On Error GoTo ErrHandle Set crSection.ReportObjects("Classmate").FormattedPicture = _ LoadPicture(Report.Sections("DetailSection3").ReportObjects("PicFile").Value) End Sub
or in the report
Private Sub DetailSection1_Format(ByVal pFormattingInfo As Object) Set crNameTagsAdhesive.Classmate.FormattedPicture = _ LoadPicture(crNameTagsAdhesive.PicFile.Value) End Sub
creates the error.
Thought a stored procedure might work but my understanding is the procedure is entered into the design view in Access which does not show up when using a Union All Select parameter.
I’m stumped. Any ideas would be great.