Avatar billede Laursen_ Nybegynder
03. februar 2016 - 08:55 Der er 19 kommentarer og
1 løsning

Access 2007 tekst (txt) eksport fejl 3441 engelsk/dansk styresystemer

Hej alle eksperter

Jeg har oprettet en access database (accdb) på en engelsk windows 7 maskine hvor min cvs eksport funktion (DoCmd.TransferText acExportDelim, , "qry_shop_update", sImportFile, True) fungere uden problemer. Når jeg vil eksportere på en dansk udgave af windows 10 for jeg fejl 3441?

Er der nogen der kender til dette problem og ved hvad jeg skal gøre...

mvh Laursen
Avatar billede supertekst Ekspert
03. februar 2016 - 09:03 #1
Avatar billede terry Ekspert
03. februar 2016 - 09:33 #2
'3441' "Text file specification field separator matches decimal separator or text delimiter"


You need to look at which field separator your using, and also the dcecimal separator in numbers. If they are the same then it will give problems.

Try changing regional settings on DK machine to English, just to see if it helps.
Avatar billede terry Ekspert
03. februar 2016 - 09:35 #3
sorry supertekst, for some reason your comment hadn't show up.
Avatar billede supertekst Ekspert
03. februar 2016 - 10:13 #4
Ok terry :-)
Avatar billede Laursen_ Nybegynder
03. februar 2016 - 19:41 #5
Jeg har forstået det som at der som følge af dansk styresystem skal laves en spec for min eksport som skal gemmes på hdd. jeg kan dog ikke helt gennemskue hvordan.

Jeg har gemt en eksporthændelse i databasen og forsøgt at kalde den i koden. Får dog følgende fejl:

The text file specification <name> does not exist. You cannot import, export, or link using the specification. (Error 3625)

Microsoft Access tried to import/export/link to a text file using a specification table name that does not exist in the MSysIMEXSpecs table of the database. Re-create the link using a valid specification table.
Avatar billede terry Ekspert
03. februar 2016 - 20:21 #6
In newer versions of Access there are actually two ways to make export specifications, and for some reason one of them isn't recognised as a specification when using DoCmd.TransferText


Anyway, try this.
Choose query to export.
Then choose External Data Menu followed by Text File (to right of Saved Exports.
The filename is defaulted to name of query + .txt. Change .txt to .csv.
This now gives you much more flexibility over how you export the data.
There is an Advanced button lower left. Press this.

Here you can choose what Decimal symbol you want in the file, and also Field Delimiter. Change these and make sure they are not the same.
The Save As button lets you save the name of the export specification, this is the name you use in
DoCmd.TransferText

Give it a try.
Avatar billede Laursen_ Nybegynder
04. februar 2016 - 15:57 #7
Eksporten ser fin ud men jeg får følgende fejl?

DoCmd.TransferText acExportDelim, , "ExpShopUpdate", sImportFile, True =>

Microsoft Access-databaseprogrammet kan ikke finde objektet "ExpShopUpdate". Kontrollér, at objektet findes, og at du har stavet navnet og stien korrekt. Hvis 'ExpShopUpdate' ikke er et lokalt objekt, skal du kontrollere netværksforbindelsen eller kontakte serveradministratoren.

ELLER

DoCmd.TransferText acExportDelim, "ExpShopUpdate", "qry_shop_update", sImportFile, True =>

Tekstfilspecifikationen "ExpShopUpdate" findes ikke. Du kan ikke importere, eksportere eller sammenkæde med denne specifikation.

? hva' gør jeg galt.
Avatar billede terry Ekspert
04. februar 2016 - 18:08 #8
I cant see how your creating the specification so I cant say what the problem is.

If you open External Data menu and then press saved exports, can you see the name of the specification here?
Avatar billede Laursen_ Nybegynder
04. februar 2016 - 19:58 #9
ja... og eksporten fungere uden problemer fra access brugerflade?
Avatar billede terry Ekspert
05. februar 2016 - 09:31 #10
"ja... og eksporten fungere uden problemer fra access brugerflade? " ??

Not sure that answers my question
Avatar billede terry Ekspert
05. februar 2016 - 09:55 #11
Ok, I assume ja means you can see the export specification under Saved Exports and that it also works running it from here.

As mentioned earlier:
In newer versions of Access there are actually two ways to make export specifications, and for some reason one of them isn't recognised as a specification when using DoCmd.TransferText

And this happens to be the specifications saved under External Data/Saved Specifications.

Again, I dont know how you are creating the specific, but if you followed my earlier instructions and actually pressed the ADVANCED button, as I also said,
"The Save As button lets you save the name of the export specification, this is the name you use in
DoCmd.TransferText"

You have to give your specification a name here and saved it, and this is the name you have to use, NOT the name under External Data/Saved Specifications.
Avatar billede Laursen_ Nybegynder
05. februar 2016 - 10:18 #12
Hi Terry.

I just realised that I mistakenly thought that it was the "save export steps" you meant, and this I did not do :-o

I'll try it out when I get my hands on the danish pc.

Jan
Avatar billede terry Ekspert
05. februar 2016 - 11:13 #13
OK
Avatar billede Laursen_ Nybegynder
05. februar 2016 - 17:04 #14
Hi terry

Finally it seems to be working.

I saved the configuration in the "advance" dialog and added the name to the code like this

DoCmd.TransferText acExportDelim, "qsu_xport", "qry_shop_update", sImportFile, True

Thanks for the help :-) br Jan
Avatar billede Laursen_ Nybegynder
05. februar 2016 - 17:05 #15
de points der så...
Avatar billede Laursen_ Nybegynder
05. februar 2016 - 17:07 #16
Øh - hvordan er det så lige at jeg tildeler dig points?
Avatar billede terry Ekspert
05. februar 2016 - 17:11 #17
Great :-)
Avatar billede terry Ekspert
05. februar 2016 - 17:13 #18
You'll need an answer from Supertekst and then it should be straight forward
Avatar billede terry Ekspert
05. februar 2016 - 17:13 #19
If you intend splitting them that is.
Avatar billede terry Ekspert
05. februar 2016 - 19:44 #20
thanks
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester