Results 1 to 3 of 3

Thread: [RESOLVED] [Access 2003] Query Build Expression - Length

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Location
    Best Place on Earth
    Posts
    363

    Resolved [RESOLVED] [Access 2003] Query Build Expression - Length

    I have a query which has a number of fields one of which is called Intemediary.
    This field is a string, I need to place a criteria on the query so that only
    those rows where Intemediary is longer than 7 characters are returned.

    Unfiortunately all I have been able to create using the Build Expression is the
    following, which does not work.

    Code:
    Len([Intemediary])>"7"
    Can anyone offer any suggestions?
    Signature Under Construction

  2. #2
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,657

    Re: [Access 2003] Query Build Expression - Length

    surely you shouldn't be wrapping your number 7 in quotes. As far as I am aware the Len command does work in Access.

    vb Code:
    1. Len([Intemediary])> 7
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Location
    Best Place on Earth
    Posts
    363

    Re: [Access 2003] Query Build Expression - Length

    Just realised what I was doing wrong.

    I was writing the expression in the Criteria field for Intermediary in my query,
    instead of adding
    Code:
    Len([Intermediary])
    as a field on the query in its own right.

    Oh, the shame. Such a basic mistake.
    Signature Under Construction

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width