>Hi:
>
>How do I get copy# at runtine because I want to print something based on copy number.
If this is the case, you should do it in a loop, create some numeric variable and increment it in report footer (or summary) On Exit. When use this variable in your report to do your formatting.
Something like this
local lnCopyNumber as Integer, lnI as Integer, lnTotalCopies as Integer
lnCopyNumber = 1
lnTotalCopies = thisform.txtTotalCopies.value
for lnI = 1 to m.lnTotalCopies
report form myReport to ...
next
In report you can have expression:
iif(vartype(m.lnCopyNumber)="U","Run from Dev. Environment", "Copy # " + transform(m.lnCopyNumber))
That's up from my head, not tested, but should give you an idea.
If it's not broken, fix it until it is.
My Blog