Hi There,I'm trying to be able to create an IF clause where if a character has the number 8 or 9 at the start of the string (text), that number is removed from the string in the query.As an example below - SELECT T0.NumAtCard "Cust PO Number", T0.CardName "Customer Name", T0.DocNum as "Document No.", T1.Model as "Model", T1.U_SerialNo as "Serial No.", substring(T1.Sheets,3,1) as "Sheets", left(T1.Sheets,2)+'0' as "Size of Sheet", etc etc
Where T1.Sheets,2)+'0' give me the number 200 for example. However, if there is a number 8 or 9 at the start of the string, I need to be able to format the string to remove that number from the statement.Any suggestions?Thanks in advance, Dave.