you can use this BAQ to extract the SQL code if you want as i can see you are on an erlier Epicor Version