thx gohnh
i understand that i must type it like that:
dim pr1 as new parameterfield
and it did work fine
but another error show up in line:
pr1.currentvalue.add(
pr)
and it said ( invalid object type )
actually i don't know what that line mean!all i know that after i type my number it should pass it with all records to my reports
help me in that johnh
and thx