473,785 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyphenated Name Field

I have designed databases but have never come across any complications due
to the ridiculous situation of a hyphenated last name. As a database
designer (very junior level) I disdain anything unwieldly, and consider this
unwieldly.

I haven't dealt with it, as I said, but I figure if I do, I'd simply design
the text field to not accept hyphens, so Smith-Barney would be stored as
SmithBarney, or even Smithbarney as I commonly have the forms automatically
apply a Title Case to everything entered.

It is standard practice in many databases to leave such characters out, in
phone numbers for example even when an "input mask" is designed and it's
prompting you how to do everything and it asks you if you want to store the
hyphens the default is that it doesn't. This seems to be the smarter way to
go, as it prevents formatting pecularities from messing up searching &
sorting etc.

Is this how Smith-Barney should be dealt with--prevent the hyphen? Or would
feminazist-clients become too upset?

PS--this is NOT a troll message, not trying to upset anyone--again, I have
designed databases and am asking as such, as I have never come across this
yet but figure one day I will

LRH
Nov 13 '05 #1
14 5512
On Thu, 26 May 2005 22:39:09 -0700, "Larry R Harrison Jr"
<no***@noone.co m> wrote:

I prefer to deal with field values as they are. If that means writing
extra code to handle Smith-Barney or O'Brien, so be it.
Masks is a different situation. You can store them, or not. Just be
consistent.

-Tom.

I have designed databases but have never come across any complications due
to the ridiculous situation of a hyphenated last name. As a database
designer (very junior level) I disdain anything unwieldly, and consider this
unwieldly.

I haven't dealt with it, as I said, but I figure if I do, I'd simply design
the text field to not accept hyphens, so Smith-Barney would be stored as
SmithBarney, or even Smithbarney as I commonly have the forms automatically
apply a Title Case to everything entered.

It is standard practice in many databases to leave such characters out, in
phone numbers for example even when an "input mask" is designed and it's
prompting you how to do everything and it asks you if you want to store the
hyphens the default is that it doesn't. This seems to be the smarter way to
go, as it prevents formatting pecularities from messing up searching &
sorting etc.

Is this how Smith-Barney should be dealt with--prevent the hyphen? Or would
feminazist-clients become too upset?

PS--this is NOT a troll message, not trying to upset anyone--again, I have
designed databases and am asking as such, as I have never come across this
yet but figure one day I will

LRH


Nov 13 '05 #2
On Thu, 26 May 2005 22:39:09 -0700, Larry R Harrison Jr wrote:
I have designed databases but have never come across any complications due
to the ridiculous situation of a hyphenated last name. As a database
designer (very junior level) I disdain anything unwieldly, and consider this
unwieldly.

I haven't dealt with it, as I said, but I figure if I do, I'd simply design
the text field to not accept hyphens, so Smith-Barney would be stored as
SmithBarney, or even Smithbarney as I commonly have the forms automatically
apply a Title Case to everything entered.

It is standard practice in many databases to leave such characters out, in
phone numbers for example even when an "input mask" is designed and it's
prompting you how to do everything and it asks you if you want to store the
hyphens the default is that it doesn't. This seems to be the smarter way to
go, as it prevents formatting pecularities from messing up searching &
sorting etc.

Is this how Smith-Barney should be dealt with--prevent the hyphen? Or would
feminazist-clients become too upset?

PS--this is NOT a troll message, not trying to upset anyone--again, I have
designed databases and am asking as such, as I have never come across this
yet but figure one day I will

LRH


Personally, I think it's disrespectful to a person to write his/her
name as anything other than the way that person want's to see it.
Smithbarney is not the same as Smith-Barney. If I was Mr. Smith-Barney
and received a letter with my name improperly spelled like that I
would not be favorably inclined towards whatever the letter was about.

You state that you are using 'Title Case' (StrConv I assume).
Are you concerned with names like O'Brien and Smith-Barney being
improperly capitalized as O'brien and Smith-barney?
It's no problem to write a User Defined function to check for a hyphen
within a name and capitalize the next character if that is your
concern. A table of name exceptions does well with names like
O'Brien (as well as McDonald and van den Steen).

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #3
I have a problem having to write code specifically for this special
situation, when all other names don't need it. Why should code have to
be written for such specific situations--code which will only add bloat
and complexity?

Databases work best when data goes where it is supposed to--and
conforms to a certain standard. That's why so many systems make you not
enter hyphens, or extra spaces, or enter the first name in the first
name field as opposed to your middle name there because you like going
by your middle name rather than 1st name. If everyone would just do
things the same way, you wouldn't have to program for the
complexity--and I like how things like government forms don't
accomodate and make people who go by their middle name--say "Larry
Reynolds Harrison" goes by Reynolds--they nonetheless fill out "Larry R
Harrison" just the same--they don't accomodate for the special
circumstance because it adds too much complexity, those exceptions
shouldn't compromise or complicate the other data.

Trust me, I don't have an attitude towards personal preferences--as
long as they don't add special complications that 95% of other
situtaions don't. Why should someone think they're so special by having
a hyphenated name that an entire database & its system has to be
altered to accomodate them when everyone else's normal situations don't
require this? That is what I have the problem with--and I kind of like
systems which don't. Maybe I'm sick, I don't know--I know that those
who design databases are there to help & not hinder, but you kind of
need the cooperation of the client to not bend things too much to help
towards this end.

LRH

Nov 13 '05 #4
la********@yaho o.com wrote:
I have a problem having to write code specifically for this special
situation, when all other names don't need it. Why should code have to
be written for such specific situations--code which will only add bloat
and complexity?
I agree with Tom van Stiphout and fredg. Hyphenated last names were
not invented to frustrate programmers. They are real data. If the
strConv function can't handle capitalization of the real data then you
have to find another way to make it happen. Trying to apply political
pressure to persuade the client into accepting something that is not
real data because you can't handle the complexity is backwards IMO.
systems which don't. Maybe I'm sick, I don't know--I know that those
who design databases are there to help & not hinder, but you kind of
need the cooperation of the client to not bend things too much to help
towards this end.


So is the thinking that the client would be bending things by asking
that this situation be handled.

James A. Fortune

Nov 13 '05 #5
On 1 Jun 2005 11:21:33 -0700, la********@yaho o.com wrote:
I have a problem having to write code specifically for this special
situation, when all other names don't need it. Why should code have to
be written for such specific situations--code which will only add bloat
and complexity?
Big Snip

I may be at the other end of the spectrum. I don't try to make any
one-size-fits-all formatting rules for text fields. If the data entry person
enters the first character as lower case for a proper name, it stays lower
case. On the other hand, if the first character after a hyphen is capitalized,
it stays that way too. I don't think it is too much too ask that the data
entry person use proper grammatical rules. So far, at least, it's not against
the law to think about what you are doing at your job.

Just a wizard prodder
Chuck
--

Nov 13 '05 #6

<ji********@com pumarc.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
So is the thinking that the client would be bending things by asking
that this situation be handled.

James A. Fortune

In some cases, absolutely. For example, I have actually had persons before
wonder how come their attempts to enter data crashed when they tried to
enter the state in the Zip code. They enter some names as "O'Brien" and
others as "OBrien" and still others as "O Brien"--only to then wonder why
not all of those are sorted together as if they're the same. They wonder how
come a query they later add themselves for showing "O'Brien" returns
inaccurate numbers because of the other variations entered.

Duh! You have to be consistent, enter them all the same way.

Then of course you have drop-down lists for states commonly, because some
will enter "NC" some "N.C." some "nc" and on and on. You have to be
consistent, else search results and the like will be off. You wouldn't
expect me to design the query to say "NC" or "nc" or "n.c." or "N C" or "Nc"
and on & on, would you? I would surely hope not.

Simply enough--with data, you have to have consistency with such things. It
would be ridiculous to ask a designer to allow for these variations. What I
will do instead--and others apparently do likewise--is design the database
to FORCE the user to enter all such entries identically. Not sure how one
would do this with the O'Brien issue--unless they made it unable to accept
the ' character or spaces of any kind--but with states, again, commonly a
drop-down list of states would be attached to the "state" field, with the
"limit to list" attribute set to "yes."

To me, this is such a situation. If you have some who would call themselves
"Smith Barney," others who would call themselves "Smith-Barney" others who
would have some other variation--you end up complicating things. If you
search for those whose true last name is "Barney," for instance, you may
pull up "Smith-Barney" in there as well undesirably--if you are doing one of
those "Like "*" And [name] and "*" type of searches.

Simply enough, it adds complexity where it isn't needed. I think that is
why, for instance, I hear that when my brother in law who I shall call "John
George Smith"--we likes to go by George rather than John--he has to enter
forms "John G Smith," because they ask for his middle initial ONLY, they do
not care what his middle name is, even though that's what he goes by. To
MAKE SURE he gets found in important searches, they make him along with
everyone else enter his first name in full, his middle initial ONLY, then
his last name--period. No exceptions, whatsoever. I would guess if his last
name was "Jones-Barney" they would have him fill out the form "JonesBarne y"
and that's how it would get entered.

I like such designs, personally. And I figure--I don't know, but if people
like "George" can be understanding of such realities with government forms &
the databases that hold the data, why should we do any differently? The
conformity is a GOOD thing--increases the probability of the data being
obtained properly and quickly, and helps prevents "cross contamination" of
data with similar names. In other words--data integrity. Isn't that the
point? If overly-sensitive types are wanting to compromise this to save
their sensibilities, I say they need a reality check.

In closing--I typically post here with extremely practical questions, not
opiniated ones. I typically ask questions like "what syntax is appropriate
for creating a joint query in SQL." I will make sure to stick to such
questions in the future for the most part and hopefully not waste anyone's
time here; I realize Microsoft MVPs and the like are hanging out here to
help & don't want to get sucked into long-winded opinion discussions. I am
asking as a designer, not trying to be opiniated politically so much as that
the objective here is the protection of data integrity, not sucking up to
people's whimsical fascination with titles & so forth.

LRH
Nov 13 '05 #7
I do hear you. Sometimes giving a certain field "room" to be "loose" may be
the way to go. I know that recently I was actually a data-entry clerk at a
job assignment but I designed a form which converted what I entered to title
case--and it very significantly increased my speed.

I think maybe an unbound check box which, if checked, does NOT execute the
StrConv function in the name field, could be utilized as an override option;
if not checked, the last name would be converted, if checked, it would not
be. It could have an &h caption or something so the data-entry person could
type ALT-H to toggle this switch off & on without having to use the mouse &
slow his/her data-entry down.

LRH
Nov 13 '05 #8
Larry R Harrison Jr wrote:
I think maybe an unbound check box which, if checked, does NOT execute the
StrConv function in the name field, could be utilized as an override option;
if not checked, the last name would be converted, if checked, it would not


If you've data entry experience as you say, then you'll know anything
optional is always forgotten by data entry clerks.

Go with Chuck's method. Some data entry people may be misogynist as you
demonstrated in your OP, but most are not stupid.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #9
"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote in message
news:d7******** **@coranto.ucs. mun.ca...
Go with Chuck's method. Some data entry people may be misogynist as you
demonstrated in your OP, but most are not stupid.
--

As I said to Chuck, his way (which is, anything goes in such fields) may
well be the way. It is a delicate balance between controlling how the data
are input so as to keep it "normalized ," vs giving flexibility so that
what's needed to be entered can be. That said, the misogynist label doesn't
apply. I don't hate women, I hate strays from the norm which complicate
things, whichever gender is the one doing it. Gender is irrelevant.
Conformity and data-integrity are what matter, not feelings.

LRH
Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2216
by: Maksim | last post by:
Trying to find out a way how to restrict value of the element by name of an element, it might be not even possible, but anyhow. Let's consider following snippet: <xs:element name="tag1" type="xs:string" /> <xs:element name="tag2" type="xs:string" /> <xs:element name="tag3" type="xs:string" /> .....
10
6566
by: Colleyville Alan | last post by:
I am trying to turn a short and fat (63 columns) table into one that is tall and skinny (7 columns). Basically, I am trying to create a "reverse crosstab" using a looping structure in VBA along with SQL. I'd like to take the name of the column and input it into a descritor field. This isn't the table, but will serve as a better illustration than the real deal. If the table looks like this:
2
1845
by: LoopyNZ | last post by:
Hi, (Access 97) I'm creating a query (QRY_SUMMARY) to join a query (QRY) to itself (QRY_1). I'm returning QRY.* and selected fields from QRY_1. With each field (field_name) I return from QRY_1 I'm appending "_1" to to the end to avoid name conflicts with the fields from QRY, i.e. "field_name" becomes "field_name_1".
11
4435
by: MS | last post by:
The simplest input mask for peoples names is.... >L<?????????????? But what about when you have names like MacDonald, or Mary-Anne? Anyone come up with a good "all round" "idiots" mask that still applies capitals and lower case when required - even for Mac and hyphens?
5
2945
by: David | last post by:
Hi I seem to be getting nowhere with this. I am opening a form which will be used to input Notes into different fields in a table. My problem is changing the unbound field name to the field name in the associated table that this form is based on. Is there anyway I can do this with vba ? I am using a different button object to open this form for the field it is to update. button1 updates unbound field name from text1 to 101Commnets...
4
2594
by: Antonio Tirado | last post by:
Hi, I'm using the OleDB namespace to open a CSV File. I can read the file sucessfully except for hyphenated values. My CSV File contains phone numbers and sometimes these come separated with hyphens (ie: 555-123-4567). These fields come as empty using the OleDB namespace and as dbNull when using the ODBC namespace. Is there a way to prevent this from happening? Thanks in advance,
7
2785
by: Mary | last post by:
I have a student who has a hyphenated first name. If I concatenate the name like this: StudentName:( & ", " & ), it works as expected. If, however, I try to get the first name first by concatenating like this: StudentName: ( & " " & ), only the first name appears. I sure would appreciate any help! Mary
5
3103
by: rajsa | last post by:
Using a setvalue macro, I'm trying to concatenate several fields, all of which are set as 'text', but some of which contain only numbers. (Gathering data from a form into one field, then saving this back to the table) I have got around the problem by using CStr(), but this isn't working for one field, where I have two numbers (page numbers) seperated with a hyphen, e.g. 378-392. If I leave out the Cstr(), I get a Type Mismatch error, if I...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.