I can't see anything wrong...are you sure the value of @rptNum is on the database?
Yes, quite sure. The form is populated by virtue of the user choosing a rptnum to edit from a drop-down that lists the rptnum values already in the database;
I'm glad you found nothing wrong, but evidently, there is..