Options

Search value

kljinnnkljinnn Member Posts: 23
When I search a record in a form he doesnt find a record when i dont type a capital letter. Is their any property or function that i can use so i can search whatever I like, even I type it with capitals or without them.

example: when i search for test he doesnt find the record with Test

Comments

  • lakshmivallurulakshmivalluru Member Posts: 168
    LR
  • kljinnnkljinnn Member Posts: 23
    and where do i have to paste that @?
    i dont find it. this is my code


    IF gemeenteschool <> '' THEN BEGIN
    RESET;
    SETCURRENTKEY(Gemeente);
    SETRANGE(Gemeente,gemeenteschool);
    CurrForm.UPDATE(FALSE);
    END
  • SteveOSteveO Member Posts: 164
    You need to use SETFILTER instead of SETRANGE.
    SETRANGE will only look for literal values, SETFILTER allows you to use wildcards and other filter characters.

    Here is some info from the online help for SETFILTER
    This example...
    Means...

    A..Z
    A range from A to Z

    A | G
    A or G

    F.. & *A/S
    A range from F and A/S is included in the field.

    <>B
    All except B

    <>''
    All not blank

    <=200 | >500
    All less than or equal to 200 or greater than 500


    Using a filter with replacement field:

    This filter selects all accounts in the range from 100 to 200 and No. 300

    "G/L Account".SETFILTER("No.", '%1..%2|%3', '100', '200', '300');

    Using a filter entered directly in a string:

    This filter, which is entered as a string, corresponds to the previous example. It too selects all accounts in the range from 100 to 200 and No. 300.

    "G/L Account".SETFILTER("No.", '100..200|300');
    This isn't a signature, I type this at the bottom of every message
  • kljinnnkljinnn Member Posts: 23
    ok, thanks it works.
    thank you
Sign In or Register to comment.