>I have created 2000 records with starting no 32000 to 34000 and I have designed "print.scx" in that i have placed three text boxes namely 1. txtstart 2.txtend 3. txtpageno and two command button namely 1 cmdprint 2. cmdexit. I have enterd starting printing no in txtstart and ending no in txtend and press tab the particular pageno of printing records is display in txtpageno, let assume if I have enterd 32001 in txtstart and enterd 32025 in txtend means the page 1 is display in txtpageno or if I have enterd 32026 in txtstart and enterd 32050 in txtend means the page 2 is display in txtpageno like this.
>
>How to write code?
Simple math , simple elementary school math.
floor((thisform.txtStart.Value - 32000 - 1) / 25 ) + 1
Cetin