>I tried suspending and running the seek in the watch window.
>It brings up the value of the seek. and when I try to continue running the code after it runs fine.
Maybe you're getting to somewhere then. Does the form has a private datasession ? When you did that in command window you imlplicitly switched to default session #1. Try within form next directly using same working code before if !empty(...
What I suspect is there is a define in form's include file defining OLNLYPGNO with something like thisform.
Cetin