Hi,
I'm using VBA to export data from a table direct to a CSV file
DoCmd.TransferText acExportDelim, , "ExportTable", filePath
this produced a file with COMMA separated values, until...my computer
got fried and the repair shop re-installed Windows XP in French (I
live in France). Now when I run the export the values are separated
by
semi-colons. I've used the Regional Settings in the Control Panel and
selected the English (UK) settings and this did make a difference to
how Excel saves a spreadsheet in CSV format: semi-colon with French
settings and comma with English, as you'd expect, but it hasn't made
any difference to how Access exports my data.
I'd welcome any ideas any of you might have. Many thanks in advance,
Nigel 3 29724
Just to clarify:
I'm really hoping that there is a setting or registry entry I can
change on my machine which will fix the problem for me, rathaer than
making any modification to the database code itself. The reason: the
database is installed at numerous client sites where it works fine as
it is - they're all 'English' computers - and I'd prefer not to change
the database just to solve a local problem on my machine.
Thanks,
Nigel
On Sep 14, 9:34 am, ni...@bouteyres.com wrote:
Hi,
I'm using VBA to export data from a table direct to a CSV file
DoCmd.TransferText acExportDelim, , "ExportTable", filePath
this produced a file with COMMA separated values, until...my computer
got fried and the repair shop re-installed Windows XP in French (I
live in France). Now when I run the export the values are separated
by
semi-colons. I've used the Regional Settings in the Control Panel and
selected the English (UK) settings and this did make a difference to
how Excel saves a spreadsheet in CSV format: semi-colon with French
settings and comma with English, as you'd expect, but it hasn't made
any difference to how Access exports my data.
I'd welcome any ideas any of you might have. Many thanks in advance,
Nigel
<ni***@bouteyres.comwrote in message
news:11*********************@y42g2000hsy.googlegro ups.com...
Hi,
I'm using VBA to export data from a table direct to a CSV file
DoCmd.TransferText acExportDelim, , "ExportTable", filePath
this produced a file with COMMA separated values, until...my computer
got fried and the repair shop re-installed Windows XP in French (I
live in France). Now when I run the export the values are separated
by
semi-colons. I've used the Regional Settings in the Control Panel and
selected the English (UK) settings and this did make a difference to
how Excel saves a spreadsheet in CSV format: semi-colon with French
settings and comma with English, as you'd expect, but it hasn't made
any difference to how Access exports my data.
I'd welcome any ideas any of you might have. Many thanks in advance,
Nigel
No idea how to fix the problem, but if noone can help, you could
post-process the file with VBA (I'm aware you don't want to do this, but if
it turns out to be your only option...). Paste the following code
immediately after
your TransferText line:
''' BEGIN CODE '''
Dim buffer As String
Open filepath for Binary Access Read As 1
buffer = Space(LOF(1))
Get #1,, buffer
Close 1
buffer = Replace(buffer, ";", ",")
Kill filepath
Open filepath for Binary Access Write As 1
Put #1,, buffer
Close 1
''' END CODE '''
What that code does is to grab the whole file from disk into a string
variable (buffer), then replace all instances of semicolon with comma. The
original export file is then deleted and the file is re-created by writing
out the buffer.
Try Start>Control Panel>Regional and Language Options and look at Customize
settings. There may be something there,
<ni***@bouteyres.comwrote in message
news:11*********************@50g2000hsm.googlegrou ps.com...
Just to clarify:
I'm really hoping that there is a setting or registry entry I can
change on my machine which will fix the problem for me, rathaer than
making any modification to the database code itself. The reason: the
database is installed at numerous client sites where it works fine as
it is - they're all 'English' computers - and I'd prefer not to change
the database just to solve a local problem on my machine.
Thanks,
Nigel
On Sep 14, 9:34 am, ni...@bouteyres.com wrote:
>Hi,
I'm using VBA to export data from a table direct to a CSV file
DoCmd.TransferText acExportDelim, , "ExportTable", filePath
this produced a file with COMMA separated values, until...my computer got fried and the repair shop re-installed Windows XP in French (I live in France). Now when I run the export the values are separated by semi-colons. I've used the Regional Settings in the Control Panel and selected the English (UK) settings and this did make a difference to how Excel saves a spreadsheet in CSV format: semi-colon with French settings and comma with English, as you'd expect, but it hasn't made any difference to how Access exports my data.
I'd welcome any ideas any of you might have. Many thanks in advance,
Nigel
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Angel Cat |
last post by:
I'm exporting a large file from a large Production database (SQL).
Users are currently updating and inserting new records.
Does the export take a snapshot of the data when it starts ? or will...
|
by: chetan |
last post by:
Hi ,
myself Chetan
Is There anybody could help me ?
I am working on the project in c++ ,, I am in great confusion that
should I export c++ member functions OR methods to create objects of...
|
by: abhishek.srivastav |
last post by:
Hi
I m a new one in Db2 .I have a table which includes a varchar,date and
a clob column.I am trying to export all the columns at one go rather
than exporting the varchar and date type data once...
|
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...
|
by: Otis Hunter |
last post by:
I have been fighting with this for days and your expert help is
needed! Below is the code I am executing which results with "Object
doesn't support this property or method". The error is occuring...
|
by: Mustufa Baig |
last post by:
I have an ASP.NET website where I am showing off crystal reports to users by
exporting them to pdf format. Following is the code:
----------------
1 Private Sub ExportReport()
2 Dim oStream...
|
by: Bilgehan.Balban |
last post by:
Hi,
My observation was that a function with `inline' qualifier has file
scope in C++ and it's symbol is not exported. Contrary to this, in C an
`inline' function symbol is exported, unless it...
|
by: Snozz |
last post by:
The short of it:
If you needed to import a CSV file of a certain structure on a regular
basis(say 32 csv files, each to one a table in 32 databases), what
would be your first instinct on how to...
|
by: db2admin |
last post by:
Hi,
I am getting error when exporting data from mainframe using db2
connect while i am on db2 on linux.
Here is what error looks like...
|
by: Marty Klunk |
last post by:
I have an Access97 data base where we are exporting records out to a text file that is then sent to a customer via EDI transmission. The problem I am having is that during the export process access...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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: 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,...
|
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...
|
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...
| |