I need to pull the Customer numbers from this string, where IDCUST is the fieldname and the customer code is in the brackets. How would I be able to pull all the customer numbers from it and store them elsewhere?
(CODECURN = "BDS") AND (SWACTV=1) AND (( IDCUST = "0056100" ) OR ( IDCUST = "0092375" ) OR ( IDCUST = "0109550" ) OR ( IDCUST = "3008000" ) OR ( IDCUST = "3016" ) OR ( IDCUST = "3018" ) OR ( IDCUST = "3020" ) OR ( IDCUST = "3026" ) OR (IDCUST = "4011003" ) OR ( IDCUST = "S00087" ) OR ( IDCUST = "X00348")))
This code is a long string that is in a Memo field in an Access database. I need to be able to pull the customer numbers from a string that is in this format, no matter how many customer numbers are in it. Any ideas?