473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Spaces in Field Names?

I have a simple db to keep track of work/time/projects etc. It has two
fields (column) named "start time" and "end time"
WITH THE SPACES. I'm trying to do some automation to a form associated with
the db and notice that in all the examples
I've seen nobody EVER includes spaces in the names of fields. Now I'm
getting a sinking feeling....

Can anyone quickly outline the kinds of problems I'm going to encounter with
these names?
--

MichaelB
www.michaelbulatovich.com

Nov 12 '05 #1
2 11049
DFS
The only problem I've encountered with spaces in the field names is you
usually have to enclose such names in square brackets [].

So it's a little extra typing, but that's it.

"Michael Bulatovich" <Pl****@dont.try> wrote in message
news:aS*********************@news20.bellglobal.com ...
I have a simple db to keep track of work/time/projects etc. It has two
fields (column) named "start time" and "end time"
WITH THE SPACES. I'm trying to do some automation to a form associated with the db and notice that in all the examples
I've seen nobody EVER includes spaces in the names of fields. Now I'm
getting a sinking feeling....

Can anyone quickly outline the kinds of problems I'm going to encounter with these names?
--

MichaelB
www.michaelbulatovich.com

Nov 12 '05 #2
"Michael Bulatovich" <Pl****@dont.try> wrote in message
news:aS*********************@news20.bellglobal.com ...
I have a simple db to keep track of work/time/projects etc. It has two
fields (column) named "start time" and "end time"
WITH THE SPACES. I'm trying to do some automation to a form associated with the db and notice that in all the examples
I've seen nobody EVER includes spaces in the names of fields. Now I'm
getting a sinking feeling....

Can anyone quickly outline the kinds of problems I'm going to encounter with these names?


Within Access it's not really a "big" issue as long as you enclose the
field names in square brackets like [start time].

There is the rather obscure method of creating a pseudo-table within a
query and the syntax requires that the pseudo-table SQL be enclosed in the
same square brackets and the method doesn't work with additional square
brackets inside of those. This would make that method impossible if your
had field names had spaces in them.

If you ever need to upsize your table to a server database, that server
might not allow spaces in the names and then you will have the additional
hassle of renaming them.

Sometimes you can simply forget the brackets and end up chasing your tail
for a while when something doesn't work.

Overall, most developers have simply come to the conclusion that the spaces
don't provide enough "Pros" to outweigh the "Cons" and so avoid them. One
can always use query aliases and caption properties when they want to *see*
spaces in a datasheet so having the spaces in the actual field names is
just not necessary.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #3

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

Similar topics

1
by: Todd | last post by:
Hello, I'm am creating a CSV text import file for another application from my Access database. The other application requires a leading and following space surrounding a hyphen in the field...
2
by: Nick J | last post by:
Hi, I have a field called 'Transaction ID' but I can not use it in VBA because I get the error message 'COMPILE ERROR: expected: end of statement' . I am sure this is because of the space? If...
14
by: Thelma Lubkin | last post by:
I am trying to limit the user's options to the choices offered by the combobox text, but I don't want this to extend to how he spaces out the text, e.g. 'abcdefg' and 'ab cd efg' should be...
0
by: zacks | last post by:
I am trying to use the Microsoft Text Driver to access data in a text file via ODBC calls. Everything has worked fine so far. I am now trying to implement support for a file that has a special...
3
by: Chris Sharman | last post by:
Are spaces allowed in names ? Eg <input name="my field" type="text" value="my data"> The html4 dtd seems to say this is cdata, which allows embedded single spaces, but say agents may trim...
3
by: Luke - eat.lemons | last post by:
Hi, Could someone tell me the correct quotation to get around spaces in paths for: Server.MapPath("\\server\share\spaces in name.mdb") I know its bad practice to use spaces but...
1
by: andrewbda | last post by:
I am having a problem where fields are being filled by spaces when data is put in. I.e. in a text field length 50, whatever is stored in there is padded by spaces and the field length is always...
12
by: Wayne | last post by:
I have been given the task of rewriting a database that seems as though it has been written by someone with a very basic understanding of Access. Many of the object names and field names in tables...
9
by: Jeff | last post by:
I have a legacy database table that has spaces in the field names. So I have a form that looks like this: <input type="text" name="name with space" value="some_value"> on the server I have:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.