lnFirst = 32000 lnPageSize = 25 lnStart = thisform.txtStart.Value thisform.txtPageno.Value = CEILING((lnStart - lnFirst + 1) / lnPageSize )