472,139 Members | 1,328 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

Text file specification Field Separator Matches

485 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 24142
NeoPa
32,498 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
485 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,498 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
485 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,498 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,830 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
485 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,498 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
485 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,498 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
485 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,498 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
485 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,498 Expert Mod 16PB
No worries :-)

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

Post your reply

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

Similar topics

4 posts views Thread by naiya | last post: by
4 posts views Thread by angelasg | last post: by
reply views Thread by leo001 | last post: by

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.