Results 1 to 4 of 4

Thread: If Statement

  1. #1

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946
    I use a filebox to list files from a folder
    On click I compare the name of the file to
    the name of a file stored in and mdb
    If the 2 are the same I delete the file

    Problem:
    the names from the filebox are all lower case
    the names in the mdb are mixed (john, Jonjon,Mary,Larry Hagmagn, etc.)..via user input.

    when comparing the names it seems to be case sensetive
    as files with upper case characters are not deleted.


    Is there a way around this...
    can the (If sFilename(FileboxName) = rs!filename then)
    be made unCaseSensetive for lack of a better word.
    ie..can i accept John = john or John = joHn
    as long as each character is equal.
    Thanks,


    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    try converting both values to upper case, or lower case.

    e.g

    Code:
    If UCase$(sFilename(FileboxName)) = UCase$(rs!filename) Then
    'something
    End If
    Not sure if this works as i have not tried it on a record set.
    Iain, thats with an i by the way!

  3. #3
    Guest

    Option Compare Text

    Could just throw an Option Compare Text at the top.

  4. #4

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    thanks

    Thanks...both will work but I'll use the option
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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