Solved

Strange SQL issue

Posted on 2012-04-02
6
325 Views
Last Modified: 2012-04-04
I have a very strange SQL issue in a query.
2 fields exist in a table:  EmailFirstName and EmailLastName.
I created a column in the query and concatenated these to fields together.

FullName: [emailfirstname] & " " & [emaillastname]

Notice the e-f-n   and e-l-n letters are low case although the table field names are uppercase.

This query works well on PCs from China, Poland, Texas, everywhere in the world but 1 (one) PC err'd on the "emiallastname" part of the concatenated field (in Mexico).   PS.  Other's in Mexico ran OK, this is just on ONE PC.

I dissected this issue and discovered that as long as the "L" in emaillastname was uppercase, the query WOULD WORK.

Low case in all the other letters worked.

This PC was replaced with a new one (not sure, but probably all existing software replaced also).

I was happy to find, at least, a work-around... but I hate these kinds of mysteries.

Win 7, Access 2010

Can anyone shed any light on this?

Scott C
0
Comment
Question by:clarkscott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 37796138
May have had to do with the codepage setup for the database. Access would use that when building the query and it's possible that either (a) that machine had a different CodePage set than the other or (b) there was a problem with the CodePage or (c) there was a problem with the Windows or Office install on that machine.
0
 
LVL 20

Author Comment

by:clarkscott
ID: 37796216
The problem existed on an older PC.  This user was given a new pc.  I'm not sure if they did an image restore from the old pc or used a "company image" to setup the new system.   I was thinking it may have something to do with "language" of some sore.

What is the "codepage"?

Thanks

Scott C
0
 
LVL 85
ID: 37796463
The "codepage" is, basically, the "interpreter" which helps with localization of an application. Wikipedia defines it as " It consists of a table of values that describes the character set for a particular language", which is fairly accurate. Most of them are supersets of ASCII, which is just a numeric representation of a character set (i.e. A=101, B=102 etc). If that codepage were corrupted, it's entirely possible that Access would interpret your field names incorrectly, and not be able to compare them correctly.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37796591
At a basic level, ..it just sound like this one user changed something in Windows
(Regional settings, ...etc)

Did this one PC *always* have this issue?

See here...
http://www.ascii.ca/cp852.htm
Certain (but not all) Latin characters have a "Caron" or "Acute"
The Latin Letter "L" is one such character that hast both iterations for upper and lower case.


This is why I like to keep my names consistence in their "Case"...
    FullName: [EmailFirstName] & " " & [EmailLastName]
I know VBA allows lets you "get away with" using either case, but most other languages do not.

JeffCoachman
0
 
LVL 20

Author Comment

by:clarkscott
ID: 37796978
I will investigate these suggestions.  Thanks much!!
Scott C
0
 
LVL 20

Author Closing Comment

by:clarkscott
ID: 37805029
I've not found anything else specific on this issue, but I believe this is the closet I'll (probably) get to a solution - or explanation.  I believe it has something to do with Windows and a language issue.  
Thanks for your response.  It's appreciated!

Scott C
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question