Is there a way to change this code so that it lists the Customer Name in the search field?
See here:
SELECT TOP 5 T1.Price FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.CardCode = '[%0]'
AND T1.ItemCode = '[%1]'
ORDER BY T0.DocDate DESC