After the SET STEP ON, you can do several things: check an expression in the debug window, execute the code one step at a time to see what commands actually get executed, or go to the Command Window and give commands.
In this case, I suggest you go to the Command Window, give the SET command, and take a look at the cursor "TempReport", to see if the correct data was selected.
>hi,
>when i put SET STEP ON I GET ...
>
>
>SET STEP ON
>select * from mstr where UPPER(inname) = UPPER(TRIM;
>(thisform.pageframe1.page1.text1.Value));
> and nam1 =thisform.pageframe1.page1.text4.Value and;
>between(datein, thisform.pageframe1.page1.text3.value,thisform.pageframe1.page1.text5.value );
>into cursor TempReport;
> nofilter
>if _tally = 0
> MessageBox("No records selected. Try changing your criteria.")
>else
>
>ENDIF
>report FORM mstr33 preview
>select mstr
>
>
>THANKS.
>BEST REGARDS
>M.QASEM
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)