03. februar 2016 - 08:55Der 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...
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.
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
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.
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.
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.