Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jun 2004
    Posts
    119
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Query (Access2003)

    I am trying to run a query to search through a table looking at a field, and return values that have "05" as the first two digits and "9999" or "9998" as the last four digits. Can anyone help me design this query.

    Thanks,
    Nick

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    USA
    Posts
    386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Query (Access2003)

    Give this a try

    SELECT Table2.That, Left([That],2) AS Expr1, Right([That],4) AS Expr2
    FROM Table2
    WHERE (((Left([That],2))="05") AND ((Right([That],4))="9999" Or (Right([That],4))="9998"));

    Table2 is the table and That is the field.


    Good Luck
    Richard

Posting Permissions

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