Skip to Content
author's profile photo Former Member
Former Member

Extract info from field

Morning all,

I would like to extract few string values from a particular field in the table.


Order lines table contains a field Stock Code. This code is 30 digits long however, I would like to extract only 1-5 digits from it.

I read somewhere, someone asked this before but I cannot find her thread anymore.

It should be similar to my SQL code: (See last line of 7-889)

Select Unique Order_header.order_no,date_entered
from order_header,order_lines
where date_entered between "01/06/2008" and "30/06/2008"and
order_header.order_no=order_lines.order_no and

any ideas how to extract digits/string values from a field?

many thanks

Kind regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 01, 2008 at 10:43 AM


    Try this:

    {order_lines.stock_code}[1 to 5]



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Fritz You the Man!!

      It worked like a charm!!!, though the results aren't matching but that is another story. As long as this is working and has well answered my question.

      Many thanks

      Kind Regards


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.