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
Solved

Strange SQL issue

Posted on 2012-04-02
6
323 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
  • 3
  • 2
6 Comments
 
LVL 84

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 84
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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 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