Results 1 to 3 of 3
  1. #1
    bilalo is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    107

    Query arabic text

    I have the following query: Select ItemName & "/" & Price1 & "/" & Price2 from items

    When the item name is english, I get the result that I want, something like this : Pizza/1000/2000


    But when the item name is arabic, the result becomes from right to left like this: 2000/1000/بيتزا
    How can I force the second result to show the arabic item name to the left of the prices like the first result?

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I don't know if a query expression can evaluate if Arabic text is in the range of those Unicode characters (e.g. by using IIF and Asc or AscW functions) but I think code can. So your query could make use of the return value of a called function. If that function detects characters in the portion of the string separated from the rest (with / I guess) then it could be reversed by the function.

    EDIT - if you want to post a compacted and zipped copy of your db with enough value to test I expect I or someone could find the time to figure that part out, but I'm not about to build a table with sample data to test my theory. If you need help on how to upload a db here, see 'How to attach files' and the top of this page.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Seem Access is clever enough to know that Arabic goes from right to left?
    So identify how which is normal or Arabic and adjust accordi gly
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Please reply to this thread with any new information or opinions.

Similar Threads

  1. VBA doesn't recognize Arabic it give garbage
    By imadayoub in forum Modules
    Replies: 3
    Last Post: 11-13-2017, 05:58 AM
  2. access for arabic
    By mnjohn in forum Access
    Replies: 2
    Last Post: 07-20-2017, 03:10 AM
  3. Append Query video in Arabic language
    By kemas in forum Access
    Replies: 0
    Last Post: 07-26-2016, 08:28 AM
  4. Replies: 3
    Last Post: 07-11-2016, 03:49 AM
  5. Querying Arabic word
    By Sulyim in forum Access
    Replies: 0
    Last Post: 06-30-2016, 04:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums