air1access
Technical User
I have values in a field that need to be trimmed based on a few criterias. I need to be able to basically "rebuild" the string to only include anything that starts with "GTWY*" or "Schd Date*" before AND after each comma. And if there is no "GTWY*" or "Schd Date*" anywhere in the value then just leave it Null... I sure hope this makes sense..!!! Below is a few examples of what I'm tryin' to explain. Any examples or suggestion would be much appreciated..!!! I am tryin' to work with the Len, Instr, Left Trim functions - but I'm just havin' a hard time with it...!!!
Thanks in advance..!!
air1access
-From this- GTWY has changed from RNO to SDF, Pr? has changed from N to Y, Op Type has changed from 2DA to WE
-to this- GTWY has changed from RNO to SDF
-From this- Pr? has changed from N to Y, Compliance Date has changed from NO ENTRY to 8/7/2008 10:00:00 AM, Op Type has changed from WE to 2DA, GTWY has changed from SDF to CID, Schd Date has changed from 8/9/2008 to 8/7/2008
-to this- GTWY has changed from SDF to CID, Schd Date has changed from 8/9/2008 to 8/7/2008
-From this- Schd Date has changed from 8/7/2008 to 8/8/2008, Op Type has changed from 2DA to WE
-To this- Schd Date has changed from 8/7/2008 to 8/8/2008
Thanks in advance..!!
air1access
-From this- GTWY has changed from RNO to SDF, Pr? has changed from N to Y, Op Type has changed from 2DA to WE
-to this- GTWY has changed from RNO to SDF
-From this- Pr? has changed from N to Y, Compliance Date has changed from NO ENTRY to 8/7/2008 10:00:00 AM, Op Type has changed from WE to 2DA, GTWY has changed from SDF to CID, Schd Date has changed from 8/9/2008 to 8/7/2008
-to this- GTWY has changed from SDF to CID, Schd Date has changed from 8/9/2008 to 8/7/2008
-From this- Schd Date has changed from 8/7/2008 to 8/8/2008, Op Type has changed from 2DA to WE
-To this- Schd Date has changed from 8/7/2008 to 8/8/2008