A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

update query with greek characters



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2007, 08:19 PM posted to microsoft.public.access.queries
greeknl via AccessMonster.com
external usenet poster
 
Posts: 27
Default update query with greek characters

I want to do an update query on a table I imported to change all records to
propercase. In my table I have a lot of greek names (in the greek alphabet,
just the default font using the greek letter of that font) but when I run the
query all greek letters are replaced by questionmarks, meaning that the
fields containing greek words are converted to questionmarks but not the
english ones.
As this is a long table I want to avoid doing it all by hand.
Can someone help me?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200704/1

  #2  
Old May 1st, 2007, 12:00 AM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default update query with greek characters

On Mon, 30 Apr 2007 19:19:13 GMT, "greeknl via AccessMonster.com" u30909@uwe
wrote:

I want to do an update query on a table I imported to change all records to
propercase. In my table I have a lot of greek names (in the greek alphabet,
just the default font using the greek letter of that font) but when I run the
query all greek letters are replaced by questionmarks, meaning that the
fields containing greek words are converted to questionmarks but not the
english ones.
As this is a long table I want to avoid doing it all by hand.
Can someone help me?


Well, you can limit the StrConv() to only Latin letters by using a criterion
of

LIKE "*[A-Z]*"

or, better,

NOT LIKE "*[" & Chr(894) & "-" Chr(974) & "]*"

which is the range of Greek characters (from my character map utility).

It appears that each upper-case Greek letter can be converted to lower case by
adding 32 to its ASCII value, or vice versa by subtracting. Using this info
one could write a VBA function GkStrConv. I'm not sure what to do with "tonos"
or "dialytika" so I won't comment on those... but you may be able to get some
ideas with Start... All Programs... Accessories... System Tools... Character
Map.

John W. Vinson [MVP]
  #3  
Old May 1st, 2007, 07:34 PM posted to microsoft.public.access.queries
greeknl via AccessMonster.com
external usenet poster
 
Posts: 27
Default update query with greek characters

Thanks a lot
I will give it a try.
I hope it is a easy task to combine the strconv with your criterion

John W. Vinson wrote:
I want to do an update query on a table I imported to change all records to
propercase. In my table I have a lot of greek names (in the greek alphabet,

[quoted text clipped - 4 lines]
As this is a long table I want to avoid doing it all by hand.
Can someone help me?


Well, you can limit the StrConv() to only Latin letters by using a criterion
of

LIKE "*[A-Z]*"

or, better,

NOT LIKE "*[" & Chr(894) & "-" Chr(974) & "]*"

which is the range of Greek characters (from my character map utility).

It appears that each upper-case Greek letter can be converted to lower case by
adding 32 to its ASCII value, or vice versa by subtracting. Using this info
one could write a VBA function GkStrConv. I'm not sure what to do with "tonos"
or "dialytika" so I won't comment on those... but you may be able to get some
ideas with Start... All Programs... Accessories... System Tools... Character
Map.

John W. Vinson [MVP]


--
Message posted via http://www.accessmonster.com

  #4  
Old May 1st, 2007, 08:36 PM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default update query with greek characters

On Tue, 01 May 2007 18:34:36 GMT, "greeknl via AccessMonster.com" u30909@uwe
wrote:

Thanks a lot
I will give it a try.
I hope it is a easy task to combine the strconv with your criterion


I fear it won't be!!!

StrConv() will convert Latin alphabet text. You will have to rewriter
StrConv() for it to handle Greek. I'm sure it can be done, I'm guessing it may
have *been* done, but I don't know where and it's more code than I'd want to
try to write!

John W. Vinson [MVP]
  #5  
Old May 7th, 2007, 07:12 PM posted to microsoft.public.access.queries
greeknl via AccessMonster.com
external usenet poster
 
Posts: 27
Default update query with greek characters

I came accross the function Ucase() which changes strings to Uppercase.
I hope this will work also in the query because in VBA it worked fine.

Again thanks for all the help

John W. Vinson wrote:
Thanks a lot
I will give it a try.
I hope it is a easy task to combine the strconv with your criterion


I fear it won't be!!!

StrConv() will convert Latin alphabet text. You will have to rewriter
StrConv() for it to handle Greek. I'm sure it can be done, I'm guessing it may
have *been* done, but I don't know where and it's more code than I'd want to
try to write!

John W. Vinson [MVP]


--
Message posted via http://www.accessmonster.com

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.