I had my SET VIEW ON operational and saw an old LV_ORDERS view open, which means that the REPORT's DataEnvironment is still holding that view. This is why it won't work. I am going to have to see how to clear out the old DataEnvironment.
>As a test, try this
>lnOrderNumber = Orders.Order_No
>select orders
>set filter to order_no=lnOrderNumber
>REPORT FORM Order PREVIEW
>This code should do exactly the same, but it's worth a try...
>>Yes, that is what is so bewildering is that lnOrderNumber does hold the correct value.
>>
>>>Have you checked that lnOrderNumber actually holds the record you want?