12 replies
by solshakdwn Accepted solution
by tony hopkinson Accepted solution
by solshakdwn Accepted solution
by cmiller5400 Accepted solution
Try UCase(string)
That will change all of the characters to upper case.
by tony hopkinson Accepted solution
Select * From SomeTable Where StrComp(SomeField,Ucase(SomeField),0) = 0
The other thing to try is to see if in Access there is anywhere to set the collation
Latin General 1 is case sensitive, that's how you'd do this sort of thing in SQL server.
As a last ditch you could download sql server express (free from MS) and use a proper DBMS.
If you have and are using Acess as a development tool, you can link to SQL Server, get way more stuff same approcahble known front end.
HtHs
NB SQL server's default collation is case insensitive, but you can change that as the level of server, database, table, even column.
You still have problems say finding all text
TitleCase
camelCase
The only way quick/elegant way of doing that I can think of would be to use .net Extensions in SQL 2005/2008 and use regular expressions.
Whichever way you go about it, this is not scalable, it will get hideously slow, Personally I'd be looking at having another column called casetype and bulding it's content on insert and update.
HtHs
by solshakdwn Accepted solution
I just run the select query and it Gave exactly what I wanted. I thought that UCASE also commits the changes to the format but it just depends on how you construct the syntax...Is this correct?
Thanks also for the other suggestions I learnt something too.
by solshakdwn Accepted solution
That's my dilema, I don't want to change the format but select only those records that were inserted using UPPERCASE. For instance
AcBaCdDb > ABCD
by cmiller5400 Accepted solution
Is AcBaCdDb one record? or is it multiple?
I notice that you are a "student", by chance is this homework?
by solshakdwn Accepted solution
Yes I am a student going for a degree in IT and no this is not homework....Its related to my work where am interning....so I don't have a title yet......
That was just an example and the AcBaCdDb are multiple records (record A, record b e.t.c)
by maevinn Accepted solution
So I'd exclude the records I don't want.
SELECT MyFieldName FROM tblName
WHERE (((StrComp(UCase([MyFieldName ]),[MyFieldName ],0))=-1));
Selects all the records that have LOWER Case. Run this, then find 'where not in'.
by solshakdwn Accepted solution
by tony hopkinson Accepted solution
if you want to change then content then you'd use the function in say an Update statement.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending