I am using vb6 and crystal report 10.
In my report i want that the page number of the page should not start with 1 ,rather with number given by user. for which i made a formula field with the coding
NumberVar startNum := 5;
"Page " + ToText((PageNumber + startNum), 0)
Now it work fine,but using the above formula page number always start with 6.
I want that the page number now has to start with the number given by the user at run time.for this i had tried this formula
NumberVar startNum := salesfrm.startpageno.text;
"Page " + ToText((PageNumber + startNum), 0)
where salesfrm is the form at which by clicking user open report and startpageno is a text field at salesfrm form.
But got error.
can any body correct the mistake OR there is some other way to add or subtract some number in a particular field in crystal report.
Thanks