Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

txt in Access einlesen über VBA Probl. mit ANSI / ASCI

Empfohlene Antworten

Hallo zusammen.

Ich möchte eine TXT Datei in bestehende Datenbank über VBA einlesen. Funktioniert auch alles soweit ganz gut, bis auf ein kleines Problem.

In der txt Datei sind auch Umlaute (ä,ö,ü,ß), diese liest mir das VBA als irgendwelche Zeichen ein.

Ich setze Access 97 ein. Habe es auch mal mit 2000 versucht und da klappt das.

hier die Programmziele:

DoCmd.TransferText acImportDelim, , "Importalle", path, True

Kann dem VBA irgendwie beibringen, dass die txt Datei ANSI ist und er sie nicht im ASCI einliest????

Über den Importassistenten geht das auch, ist aber für die DAU´s, die damit arbeiten sollen zu viel Umweg und die Fehleranfälligkeit währe zu hoch.

Vielen Dank schon mal für die Hilfe.

Hi,

da ich mal dasselbe Problem hatte, habe ich eine eigene Import-Funktion geschrieben. Falls du interesse daran hast, poste doch mal einen Datensatz wie er in der txt-Datei steht.

hiro

Ich habe eine Lösung gefunden. Die ist zwar nicht ganz so doll, aber sie funzt.

Ich habe einfach mit dem Importassistenten eine Spezifikation erstellt und beziehe mich jetzt auf diese.

Der Eintrag lautet jetzt:

DoCmd.TransferText acImportDelim, "ImportATI", "Importalle", path, True

Wobie "ImportATI" die Spezifikation ist.

trotzdem vielen Dank.

Gruß

Tobias

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.