Results 1 to 3 of 3

Thread: Query Results

  1. #1
    Join Date
    Feb 2004
    Location
    Dothan, AL
    Posts
    4

    Unanswered: Query Results

    I am trying to query a "text" field of numbers. Here is some junk data for the example:

    01245624
    01542354
    01345845684
    25458453
    412454844
    01542354


    Those are some sample records that have in the field, although there is A LOT more. I want to QUERY the table on this row called "numberID", and I want it to return only the records that start with "01".

    I have seen some old R/Basic code where you can query "STARTING WITH", but I cannot get it working in access. Any help would be great.

  2. #2
    Join Date
    Jul 2003
    Posts
    10
    Try adding another field to your query. The added field would be the left two chars of your field:

    MyNewField: left([MyOldField],2)

    The query on the value of the new field.

    Hope this helps

  3. #3
    Join Date
    Feb 2004
    Location
    Dothan, AL
    Posts
    4
    This should work for the report also. Thank you!

Posting Permissions

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