473,320 Members | 1,853 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,320 software developers and data experts.

Spaces in query output names

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 name in order to import correctly.
Without the spaces, the import application crashes. I have no control over
the other application so I can't change this. Problem is, when I put the
space in the output field name in my query (like this (but without quotes)
"Location - City") Access strips out the spaces before and after the hyphen.
I've tried putting brackets around the output field name but Access won't
accept that. I put double quotes around the field name but then Access
outputs the double quotes as well - which also causes the import application
to crash. I know there must be a simple solution but I've been working so
closely with this that I can't see it.

I'd appreciate any help you can offer. Thanks!

Todd

Nov 13 '05 #1
1 2281
On Sat, 14 Aug 2004 11:45:46 -0700, "Todd" <to**********@penland.net>
wrote:
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 name in order to import correctly.
Without the spaces, the import application crashes. I have no control over
the other application so I can't change this. Problem is, when I put the
space in the output field name in my query (like this (but without quotes)
"Location - City") Access strips out the spaces before and after the hyphen.
I've tried putting brackets around the output field name but Access won't
accept that. I put double quotes around the field name but then Access
outputs the double quotes as well - which also causes the import application
to crash. I know there must be a simple solution but I've been working so
closely with this that I can't see it.

I'd appreciate any help you can offer. Thanks!

Todd

Hi
It worked OK for me in Access 97, using a manual export to CSV, though
if I export to .txt the spaces are replaced by underscores.
Is it because of some setting in autocorrect?
- David Schofield

Nov 13 '05 #2

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

Similar topics

3
by: Hal Vaughan | last post by:
I need to be able to run external commands from within a Java program, on Linux and Windows (and eventually OSX). Under most circumstances there is no problem, but if the path I specify as part of...
10
by: Philipp Lenssen | last post by:
I know it's terribly incorrect (well I think I know) to use something like <a href="bla.php?title=hello world">Hello World</a> but can I safely do this? I have an Apache Linux server with...
3
by: larry | last post by:
Hi, I am a newbie to Internet programming. I have some questions about spacing in HTML control names and subsequently being able to access these input elements in JavaScript If you don't have...
2
by: Michael Bulatovich | last post by:
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...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
2
by: Ken Brubaker | last post by:
Does the xsd.exe command line support paths with spaces? For example the xsd.exe /o: option specifies the output file name. How can I specify an output file path that has a space? I'v tried...
8
by: Michael786 | last post by:
Hi. I am using access 97 and am trying to run a query that will crunch up all data in a field and thus removing all spaces. For example I have a field called Address1: Example data: 12 Murray...
3
by: bstjean | last post by:
Hi everyone, I am trying to find an efficient way to perform a special query. Let me explain what I want. Let's say we are looking for all description that match "this is the target". In...
1
Ciary
by: Ciary | last post by:
hi all, new day, and already a new problem (i'm really posting to much questions :-O ) like specified in an earlier question, i'm using an access database in my website. to get it i'm using a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.