|
-
May 29th, 2000, 11:38 PM
#1
Thread Starter
_______
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
-
May 29th, 2000, 11:43 PM
#2
Fanatic Member
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!
-
May 30th, 2000, 12:05 AM
#3
Option Compare Text
Could just throw an Option Compare Text at the top.
-
May 30th, 2000, 12:51 AM
#4
Thread Starter
_______
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|