473,387 Members | 1,464 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.

Text file specification Field Separator Matches

489 256MB
I have a customer in the Netherlands that is getting the following error "Text file specification Field separator matches decimal separator or text delimiter" This happens when I try and run the DoCmd.TransferText acExportDelim command. I know this has something to do with the settings on his computer regarding the separators. Is there any way that I can switch settings in my program to accommodate this. I'm probably not very clear on this but I don't know exactly what settings they use. Any help would be appreciated.
Mar 12 '12 #1

✓ answered by ADezii

This is how you Save a Specification in Access 2010, the process cannot be that far off from 2007.
  1. Click on External Data Tab.
  2. Under Import & Link, select Text File.
  3. Browse to your Text File, then OK.
  4. In the Import Text Wizard Dialog, select the Delimited Option.
  5. In this same Dialog, click on Advanced which Opens the Import Specification Dialog. Set your Import Options, then Click on Save As...
  6. Enter a Name for your Specification, then OK.
  7. Click on OK to Close the Import Specification Dialog.
  8. Click Next on the Import Text Wizard Dialog.
  9. Set other Options appropriately.
  10. When prompted to Save Import Steps, check Save import steps - this will enable you to bypass the Wizard next time.
  11. Click Save Import.

14 25004
NeoPa
32,556 Expert Mod 16PB
You're probably talking about the fact that they use '.' and ',' where we use ', and '.'. 500,000.00 would show as 500.000,00 over there, and in various countries in mainland Europe.

I don't know for sure, but you can try escaping the character in your use. You haven't shared that with us, I expect it's in your spec, but if you can, try "\," instead of ",".
Mar 12 '12 #2
CD Tom
489 256MB
Ok, I'm sure you are correct in the way Europe uses the ',' and the '.' now here's where I show my ignorance I don't have a spec setup in the transfertext command. I have never set one up so I'm at a loss as to where to go. If you could point me the direction where I could find some information I would appreciate it.
Thanks
Mar 12 '12 #3
NeoPa
32,556 Expert Mod 16PB
You set it up most easily by doing an import manually and saving the spec within that process.

In 2003 it's under File | Get External Data | Import...
Mar 12 '12 #4
CD Tom
489 256MB
I was just looking at how to do this and I'm finding that Access 2007 doesn't give me the options to change any of the options. I see how to do it in Access 2003 but is there some way to do it in 2007? Sorry I should have mention 2007 in my earlier questions.
Again thanks.
Mar 12 '12 #5
NeoPa
32,556 Expert Mod 16PB
I expect so Tom, but I don't use 2007 (or even 2010 yet) so I can't direct you.
Mar 13 '12 #6
ADezii
8,834 Expert 8TB
This is how you Save a Specification in Access 2010, the process cannot be that far off from 2007.
  1. Click on External Data Tab.
  2. Under Import & Link, select Text File.
  3. Browse to your Text File, then OK.
  4. In the Import Text Wizard Dialog, select the Delimited Option.
  5. In this same Dialog, click on Advanced which Opens the Import Specification Dialog. Set your Import Options, then Click on Save As...
  6. Enter a Name for your Specification, then OK.
  7. Click on OK to Close the Import Specification Dialog.
  8. Click Next on the Import Text Wizard Dialog.
  9. Set other Options appropriately.
  10. When prompted to Save Import Steps, check Save import steps - this will enable you to bypass the Wizard next time.
  11. Click Save Import.
Mar 13 '12 #7
CD Tom
489 256MB
I've tried the Specifications and was able to get into and tried to change the option to the "\," I put this in the decimal area because when I tried and put it in the text separator I would get an error message. However that didn't fix the problem, I've changed my computer settings to Netherlands(dutch) to test this and I still get the error "Text file specification Field separator matches decimal separator or text delimiter" here's the exact statement :
Expand|Select|Wrap|Line Numbers
  1. DoCmd.TransferText acExportDelim, netherlandsspec, Vtable, apppathx, True
Thanks again
Mar 13 '12 #8
NeoPa
32,556 Expert Mod 16PB
I suspect you actually changed it to "Dutch (Netherlands)", after searching around aimlessly for the other :-D

Fortunately (or more likely unfortunately in this situation), when I ran mine it continued to behave exactly as it did using my normal settings - English (United Kingdom).
Mar 13 '12 #9
CD Tom
489 256MB
Thanks again for all your help. I think I'll see if I can change the settings in the language setup on his computer. He is using this computer only to run this application and maybe changing to English(united Kingdom) on his will work.
Mar 13 '12 #10
NeoPa
32,556 Expert Mod 16PB
That's a possible approach, and can certainly be used if all else fails, but my checking leads me to believe the fault lies in the spec itself. Unfortunately I don't have the database to check exactly what's what (nor could I even with a 2007 db), so it's your choice how far down that path you go before falling back to the Regional Settings solution.
Mar 13 '12 #11
CD Tom
489 256MB
It seems like there are not a lot of options in the specs settings. I can only see the text delimiter and the decimal. If the text delimiter is a "," and the decimal is a "." if I change the decimal to a "," then the text delimiter is the same. My application is also in Australia and I haven't heard of any problems they are having. I might contact one of them and see how their computers are set.
Mar 13 '12 #12
NeoPa
32,556 Expert Mod 16PB
I must admit that I can see no obvious scope here either. I just know I'd explore it further if it were me working directly on the project. That's my own personal approach though, of course. There's no reason why you should feel the same way. We all work in our own ways, and I find that way is good for me.
Mar 13 '12 #13
CD Tom
489 256MB
I'll probably keep looking at it but will not spend lots of time as this is only one case where I'm having this problem. Thanks for all the advise and help.
Mar 13 '12 #14
NeoPa
32,556 Expert Mod 16PB
No worries :-)

Glad to be able to.
Mar 13 '12 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: E Arredondo | last post by:
Is there a way to create a MYSQL table or database using a text file that countains the Field name and the lenght ? that is : fields.txt ----- start ---------- name,10 address,15
3
by: ghadley_00 | last post by:
Hi, I have a MS access database into which I need to import a text file that is oriented vertically (fields are listed from top to bottom with the value for each field appearing to the right of...
4
by: naiya | last post by:
i have to develop a VB application which reads the text from a .txt file, and i have to write the contents of the file to an Excel sheet. the format of the .txt file is name age ...
14
by: Manish | last post by:
The project I am developing doesn't involves database. I want to parse the mailbox file (.mbx) and store the summary in the text file for fast retrieval and display of information in the Inbox...
9
by: NEWSGROUPS | last post by:
I have data in a table in an Access 2000 database that needs to be exported to a formatted text file. For instance, the first field is an account number that is formatted in the table as text and...
1
by: 5095 | last post by:
Hi, i want to import data in multiple tables from a single text file (each field is seprated by pipe sign and each record is seprated by asterisk * ). Please guide me to the appropriate way. ...
4
by: angelasg | last post by:
Hello. I am saving an Excel file as a text file then importing it into Access using a specification. One of the fields in the file is a currency formatted with commas. Those numbers over 999...
0
by: grant | last post by:
I have a transfer data task that gets some data from a table and outputs it to a pipe delimitd text file. How can I configure a transfer data task so it outputs the field names from the table in...
8
by: iheartvba | last post by:
Hi I am using Access 2007 and am trying to export a query to a fixed length text file. I tried using the following code to export the text file: DoCmd.TransferText acExportFixed, , "qryFFRDeFile",...
6
by: mabrynda | last post by:
Dear Experts, I have the following problem. I'm generating output txt files from access (an access 2002 table is converted into deleimited text with tabs including field names). For that I have a...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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?
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
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,...

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.