You can try this:
cFiltExpr = "cust_id = " + pCustID && If the Type of pCustId is char
cFiltExpr = "cust_id = " + STR(pCustID) && If the Type of pCustId is num
SET FILTER TO &cFiltExpr
HTH
Boris
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.