473,406 Members | 2,273 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,406 software developers and data experts.

Placing ":" (Colon) In Field Header

I have a query with a field name of "Street", however, I would like
it
to read "CAT:STREET".

This query is exported to a csv file that requires the format of the
later. Currently the csv file is modified manually after the fact.
In the query I have been unable to create an expression that does not
choke on the ":". Or is there a way to add the Header Field Name at
the time of the TransferText?

Any suggestion as to how allow this in the query, or maybe allow this
in the export.

Thanks in advance

Oct 25 '07 #1
2 6675
Switch the query to design view, and enter the alias for the field name in
square brackets.

This kind of thing:
SELECT Surname, Street AS [Cat:Street] FROM MyTable;

Can't say I really recommend this. Access is likely to get confused at some
point with the colon in the name.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Clint Stowers" <Ab***********@gmail.comwrote in message
news:11*********************@z24g2000prh.googlegro ups.com...
>I have a query with a field name of "Street", however, I would like
it
to read "CAT:STREET".

This query is exported to a csv file that requires the format of the
later. Currently the csv file is modified manually after the fact.
In the query I have been unable to create an expression that does not
choke on the ":". Or is there a way to add the Header Field Name at
the time of the TransferText?

Any suggestion as to how allow this in the query, or maybe allow this
in the export.

Thanks in advance
Oct 25 '07 #2
Sorry: switch the query to SQL View to make the change.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:47***********************@per-qv1-newsreader-01.iinet.net.au...
Switch the query to design view, and enter the alias for the field name in
square brackets.

This kind of thing:
SELECT Surname, Street AS [Cat:Street] FROM MyTable;

Can't say I really recommend this. Access is likely to get confused at
some point with the colon in the name.

"Clint Stowers" <Ab***********@gmail.comwrote in message
news:11*********************@z24g2000prh.googlegro ups.com...
>>I have a query with a field name of "Street", however, I would like
it
to read "CAT:STREET".

This query is exported to a csv file that requires the format of the
later. Currently the csv file is modified manually after the fact.
In the query I have been unable to create an expression that does not
choke on the ":". Or is there a way to add the Header Field Name at
the time of the TransferText?

Any suggestion as to how allow this in the query, or maybe allow this
in the export.
Oct 25 '07 #3

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

Similar topics

8
by: adrien | last post by:
Hi, i start with javascript and i saw a lot of examples, but sometimes there is ";" on each end of line, sometimes only certain lines, sometimes nowhere. So my question is: where must i put ";"...
9
by: Jukka K. Korpela | last post by:
I noticed that Internet Explorer (6.0, on Win XP SP 2, all fixes installed) incorrectly renders e.g. &harr &euro &Omega literally and not as characters denoted by the entities, but if a semicolon...
10
by: Eric-Sebastien Lachance | last post by:
Hey there, I decided to just create a 100% height and width div that filled the space over a background header image, and add an onclick event to redirect to the my index... Doesn't seem to work...
2
by: Danny | last post by:
I have to make a database that will export to a tab delimited file, but the requirements are a field name with a . in the field so Is it true access will not allow this? If not, how can I get...
4
by: Ray Stevens | last post by:
Is it possible to place a company icon (logo) in the browser address field so that if a user copies it as a shortcut to his desktop the icon will be there. For example, like this:...
43
by: markryde | last post by:
Hello, I saw in some open source projects a use of "!!" in "C" code; for example: in some header file #define event_pending(v) \ (!!(v)->vcpu_info->evtchn_upcall_pending & \...
3
by: MLH | last post by:
If I run ?", ","" in the immediate window, I get a comma followed by 13 spaces. It is difficult for me to understand this.
1
by: manchin2 | last post by:
Hi, Can anybody please provide the information about "&quot" and its use, if possible please provide an example. ...
4
by: fran7 | last post by:
Hi, from help in the javascript forum I found the error in some code but need help. This bit of code works perfectly, trouble is I am writing it to a javascript function so the height needs to be in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
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
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.