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.

VB - Code für Access

Empfohlene Antworten

Veröffentlicht

Suche dringend einen VB - Code mit dem ich Daten von einer Tabelle in eine andere Tabelle (beides Access) kopieren oder ausschneiden kann!!!

DANKE

Hallo KerstinB,

hier ist ein VB-Code für Access mit dem Du Daten aus einer Tabelle in einer anderen eintragen kannst.

Dim Datenbank As Database

Dim Tabelle As Recordset

Set Datenbank = CurrentDb

Set Tabelle = Datenbank.OpenRecordset("andere Tabelle")

Tabelle.AddNew

Tabelle![Name] = TxtName

Tabelle![Vorname] = Vorname

Tabelle![strasse] = TxtStrasse

Tabelle![PLZ] = txtPLZ

Tabelle![Geburtsdatum] = geboren_am

Tabelle![Geburtsort] = Geburtsort

Tabelle![Telefon] = TxtTelefon

Tabelle![Handy] = TxtHandy

Tabelle.Update

Tabelle.Close

MfG

Frank

Hi,

Du kannst aber auch anstatt ein Recordset ein Command Objekt und SQL benutzen. Bei großen Datenmengen ist das dann Performanter:

Dim c as Command

Set c = New Command

c.ActiveConnection = <AktiveDBVerbindung>

c.CommandType = adCmdText

c.CommandText = "INSERT INTO Tabelle_1 (Feld_1,Feld_2) VALUES (Wert_1,Wert_2)"

c.Execute()

Wenn Du häufiger solche Funktionen benutzt, solltest du c als Public deklarieren, damit Du es immer wieder benutzen kannst!

Gruß Tiana.

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.