Posted on 2004-11-13
Last Modified: 2006-11-17
Hi Experts

We receive somewhere between 200 and 1000 text messages everyday from GSM modems located all over the country (South Africa). These messages are captured into an SMS management program which allows the exporting of these messages into Microsoft Excel format.

The SMS messages that are received all have the same format except for the length of the currency value:

FldFrom --> +27823807449
FldTo --> always blank
FldDateTime  --> 13.11.2004 16:49
FldDescription --> irrelevant information
FldText --> &KGWT: 1734350,0,0,0□□□□OK  

The "□" symbol in the FldText field represents the ENTER key. i.e the messages are  displayed as follows:

&KGWT: 1734350,0,0,0


- - - - - - - - - - -
A sample of this .xls file can be downloaded from:
- - - - - - - - - -

We need to import these text messages into an Access database. However we need to filter this data and only import the following data in the following format:

MessageNumber                      (Autonumber generated by access)
MobileNumber: 27823807449    (without the preceeding + sign)
MessageDate:  13/11/2004       (Short Date format - dd/mm/yyyy)
MessageData:  17,343.50         (currency value with 2 decimal places - value will always be .00 or .50)

- - - - - - - - - - -
To parse/extract the MobileNumber was simple (we merely used =Right([FldFrom],11)
To parse/extract the MessageDate was simple (we merely set the Format of the field to dd/mm/yyyy)

However, we cannot seem to parse out only the MessageData currency value - 17,343.50.
* In everycase the currency value starts 7 characters from the left
* In everycase the FldText end with 6 characters of useless info

All we need is a way to parse/extract out only the characters starting at character number 7 and ending 6 characters from the end of the field.

We have tried all different versions of Left, Right and Mid, but cannot find a solution.

Anyone offering a quick and easy method that will allow us to import only the relevant data we need (in the correct formats) will be awarded top points.

Thx Experts!


Question by:StanKobrin
    LVL 10

    Accepted Solution



    Author Comment

    Hi Richard

    That worked absolutely perfectly. All I did was then convert the field to Currency and i'm up and running.

    Points well deserved.


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
    Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
    Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
    In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now