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

problem with exporting to a text file: tricky

I am using code to export a database to a text file in ms access 2002
Not matter what export method I choose, a field name with a # in it exports
to a period.
so a field name caled '# of items' looks like '. of items' in the text file.

I know I could just change it but it is a required field.

This seems to be a bug with access.

Is there a way around this?

Thanks
Nov 12 '05 #1
5 1529
I am not aware of your particular problem, but this is exactly why I never
use such characters in any object name. a-z, A-Z or 0-9 only, _ sometimes,
no spaces.

Jeff

"PC Work" <ho********@optonline.net> wrote in message
news:Si******************@newsread1.news.pas.earth link.net...
I am using code to export a database to a text file in ms access 2002
Not matter what export method I choose, a field name with a # in it exports to a period.
so a field name caled '# of items' looks like '. of items' in the text file.
I know I could just change it but it is a required field.

This seems to be a bug with access.

Is there a way around this?

Thanks

Nov 12 '05 #2
Yes, # is the character you use to represent .
so that you can have a . in a field name.

(david)

"PC Work" <ho********@optonline.net> wrote in message
news:Si******************@newsread1.news.pas.earth link.net...
I am using code to export a database to a text file in ms access 2002
Not matter what export method I choose, a field name with a # in it exports to a period.
so a field name caled '# of items' looks like '. of items' in the text file.
I know I could just change it but it is a required field.

This seems to be a bug with access.

Is there a way around this?

Thanks

Nov 12 '05 #3

"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:40**********************@news.syd.swiftdsl.co m.au...
Yes, # is the character you use to represent .
so that you can have a . in a field name.

(david)

"PC Work" <ho********@optonline.net> wrote in message
news:Si******************@newsread1.news.pas.earth link.net...
I am using code to export a database to a text file in ms access 2002
Not matter what export method I choose, a field name with a # in it

exports
to a period.
so a field name caled '# of items' looks like '. of items' in the text

file.

I know I could just change it but it is a required field.

This seems to be a bug with access.

Is there a way around this?

Thanks



Yes, that is right. I just realized this and I was able to solve my other
problem of not being able to use . in fields in access.

Now, is there another character we can use to get to display the "#"? I am
just trying to avoid having to write a routine.

Thanks

Nov 12 '05 #4
> Now, is there another character we can use to get to display the "#"? I
am

AFAIK, the only way to get a "#" is with "." (period)

However, this almost never works, because it always gets
caught somewhere...... I think you will have to write your
own routine.

(david)

"PC Work" <ho********@optonline.net> wrote in message
news:hs****************@newsread1.news.pas.earthli nk.net...

"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:40**********************@news.syd.swiftdsl.co m.au...
Yes, # is the character you use to represent .
so that you can have a . in a field name.

(david)

"PC Work" <ho********@optonline.net> wrote in message
news:Si******************@newsread1.news.pas.earth link.net...
I am using code to export a database to a text file in ms access 2002
Not matter what export method I choose, a field name with a # in it exports
to a period.
so a field name caled '# of items' looks like '. of items' in the text

file.

I know I could just change it but it is a required field.

This seems to be a bug with access.

Is there a way around this?

Thanks



Yes, that is right. I just realized this and I was able to solve my other
problem of not being able to use . in fields in access.

Now, is there another character we can use to get to display the "#"? I

am just trying to avoid having to write a routine.

Thanks

Nov 12 '05 #5
"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message news:<40**********************@news.syd.swiftdsl.c om.au>...
Now, is there another character we can use to get to display the "#"? I

am

AFAIK, the only way to get a "#" is with "." (period)

However, this almost never works, because it always gets
caught somewhere...... I think you will have to write your
own routine.

(david)

"PC Work" <ho********@optonline.net> wrote in message
news:hs****************@newsread1.news.pas.earthli nk.net...

"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:40**********************@news.syd.swiftdsl.co m.au...
Yes, # is the character you use to represent .
so that you can have a . in a field name.

(david)

"PC Work" <ho********@optonline.net> wrote in message
news:Si******************@newsread1.news.pas.earth link.net...
> I am using code to export a database to a text file in ms access 2002
> Not matter what export method I choose, a field name with a # in it exports > to a period.
> so a field name caled '# of items' looks like '. of items' in the text file. >
> I know I could just change it but it is a required field.
>
> This seems to be a bug with access.
>
> Is there a way around this?
>
> Thanks
>
>


Yes, that is right. I just realized this and I was able to solve my other
problem of not being able to use . in fields in access.

Now, is there another character we can use to get to display the "#"? I

am
just trying to avoid having to write a routine.

Thanks


Our new product, Super*SQL will export out of Access into a delimited
flat file. It is in Beta testing and can be used free of charge. For
more information, visit www.sqlmagic.com.
Nov 12 '05 #6

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

Similar topics

5
by: Jayjay | last post by:
Is it possible to export a report to word and have it include the graphics that are in the report? I'd like to take some of our reports and export them to word so we can email those to the...
2
by: David | last post by:
We've developed a seismic-data processing app in VB.NET 1.1 which runs on XP Pro using SQL2K. Like all seismic data apps, it deals with HUGE amounts of binary data (we use NTFS sparse "flat...
5
by: Dave | last post by:
Hello, I have a possible problem exporting a text field that happens to contain dates (but is not a date field) when using TransferText in MS Access 2000. I am exporting a query to a text...
3
sanjib65
by: sanjib65 | last post by:
I have an objectDataSource that is bound to an XML file in which data is inserted through a DetailsView. Now each time I insert data a GridView shows the update. In the XML datasource I have an Item...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.