I have this section of code looking at a form with the name = “pdf”. Sometimes there may be 2 forms that need loaded - how can I get this code to load both forms with their own doclink on 2 lines? Right now, because of the line reading "pdfLnk = pdfLnk + ", “” I am getting one doclink plus the report name then a comma then the next budget number, but no doclink.
What I’m getting:
[doclink] 2007 Student Report for 0901020 UP, 0901020 UP
What I need:
[doclink] 2007 Student Report for 0901020 UP
[doclink] 2007 Student Report for 0901020 UP
Elseif rpt.form(0) = “pdf” And rpt.RptType(0) = “Student Report” Then
If pdfCt = 0 Then
Set pdfRpt = rpt
pdfLnk = Trim(Str(rpt.fy(0))) + " Student Report for "
End If
pdfCt = pdfCt + 1
If pdfCt > 1 Then
pdfLnk = pdfLnk + ", "
End If
pdfLnk = pdfLnk + rpt.dspbudget(0)