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.

EXCEL import in vorhandene AccessTABELLE

Empfohlene Antworten

Veröffentlicht

Einen schönen guten Morgen,

ich habe das Problem das ich mich nicht in VAB auskenne, nun jedoch eine Möglichkeit schaffen soll Exceldateien (sind immer identisch aufgebaut - aber eine "macht das Sinn"- Prüfung sollte dennoch erfolgen) an eine vorhandene Accessdatei (tblAirlineYears) anzufügen.

Ich hab schon was in der Art gefunden nur ist das 'nur knapp mehr' als Pseudocode.



Function import excel() As Boolean            'Function wird nicht erkannt muß erst deklariert werden aber wie?

Dim Tabelle As String

Dim xls tab As String

Dim Abfrage As String

Dim Dateiname as String


import excel = False  ' f? den Fehlerfall

On Error GoTo err import excel


' Name der Zieltabelle

Tabelle = "tblAirlineYears"


' Name der Tabelle in der Exceldatei

xls tab = "Daten2002" 


' Hier Namen der Exceldatei zusammenbauen

Dateiname = "tbl_der_neuen_Daten.xls"


'Üernehmen in Tabelle "tblAirlineYears"

DoCmd.TransferSpreadsheet acImport, 5, Tabelle, Dateiname, True, xls tab 'ev. noch dem Bereich der Tabelle


import excel = True


Exit Function


err import excel:

MsgBox Error$


End Function


Function Datumstring() as String

Datumstring = format(date,"dd",vbMonday,VbFirstFourDays) 

& "-" &  

format(date,"mm",vbMonday,VbFirstFourDays) & "-" &  

format(date,"yyyy",vbMonday,VbFirstFourDays)


End Function


Kann mir jemand helfen daraus einen funktionierenden Baustein zu machen?

DANKE Euch schon mal im vorraus

Daniel

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.