|
-
Sep 1st, 2000, 09:56 AM
#1
Thread Starter
Lively Member
Do any of the Crystal Report gurus know why this works with an Integer but NOT when it's a String?
Dim TestNum As Integer
SurNum = 1
Dim TestName As String
SurName = "This is Report Style # 2!"
With Report1
.CrystalReport1.DataFiles(0) = App.Path & "\test.mdb"
.CrystalReport1.ReportFileName = "\latest.rpt"
.CrystalReport1.Formulas(0) = "startcode = " & TestNum
.CrystalReport1.Action = 1
End With
This will work with TestNum but I get "Error in Formula" if I try it with TestName(a string). Any ideas why? What I'm trying to do is pass the Test Name as a Page Header to the Crystal Report report? ANY help would be greatly appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|