Thanks for checking back Brian, I decided to spend a couple of days and try to get as close as I could before comming back. This is comming in as a spead sheet. I am importing into a table and then trying to parse it with a query.
Trying to get the state is giving me a headache. I am getting one character or a error. The sample data I have is at:
http://ribbs.usps.gov/intelligentma...ta/FullServiceACSCOASampleDataEXCELFormat.zip
Mid([OnPieceCityStateZip],InStrRev([OnPieceCityStateZip]," ",Len([OnPieceCityStateZip])-7),2) AS OldState
Returns
M from LIBERTY MO 64068
G from ATLANTA GA 30308
T from TOMBALL TX 77375
#Error from __37128
So far I have
SELECT FullSvcNixie.ID, FullSvcNixie.OriginalMailerID6, FullSvcNixie.OriginalMailerID9, FullSvcNixie.UserLicenseCode, FullSvcNixie.MaildatJobID, FullSvcNixie.CustomerGroupID, FullSvcNixie.MailingGroupID, FullSvcNixie.OriginalIMB, FullSvcNixie.RecordCreationDate, FullSvcNixie.ActionCode, FullSvcNixie.OnPieceCityStateZip, FullSvcNixie.ReturnedToAddress, FullSvcNixie.ReturnedToCityStateZip, FullSvcNixie.ReasonCode, FullSvcNixie.KeylineFromEDoc, FullSvcNixie.ClassNotificationType, FullSvcNixie.FeeNotification, Mid([ParsedAddressOnPiece],1,10) AS OldPrimaryNumber, Mid([ParsedAddressOnPiece],11,2) AS OldPreDir, Mid([ParsedAddressOnPiece],13,28) AS OldStreetName, Mid([ParsedAddressOnPiece],41,4) AS OldStreetSfx, Mid([ParsedAddressOnPiece],45,2) AS OldPostDir, Mid([ParsedAddressOnPiece],47,4) AS OldUnitDsgn, Mid([ParsedAddressOnPiece],51,10) AS OldSecNumber, Right([FullSvcNixie].[OnPieceCityStateZip],5) AS OldZipCode, Mid([OnPieceCityStateZip],InStrRev([OnPieceCityStateZip]," ",Len([OnPieceCityStateZip])-7),2) AS OldState
FROM FullSvcNixie;