How to match status with prod. order no. ?

Dear All, These are the coding I wrote in the C/AL editor : SETRANGE(Status,ProdOrderStatus); IF ProdOrderFilter <> ‘’ THEN SETFILTER(“Prod. Order No.”,ProdOrderFilter) ELSE SETRANGE(“Prod. Order No.”); CurrForm.UPDATE(FALSE); I select demand is simulated, when I write the prod. order no. in the field prod. order filter, and its status is released, the window is missing because the production order no. doesn’t match with selected status, meanwhile I want it return to the windows and put a message in the pop up window : “the prod. order no. doesn’t match with status selected”, how to make it ? Tks be4hand… Rgds, Mark

What Form are you talking about?