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.

Access: DAO oder ADO?

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

ich habe hier eine relativ große Access - Datenbank, komplett mit ungebundenen Formularen.

Welche Methode ist jetzt die bessere für Inserts?

1. DAO:

dim sql as string

dim db as database

set db = currentdb()

sql = "INSERT INTO tbl_Kundendaten (K_Name, K_Vorname) VALUES("

sql = sql & " '" & me.f_name & "'"

sql = sql & ",'" & me.f_Vorname & "'"

sql = sql & ");"

db.execute(sql)

2. ADO:

dim rst as adodb.recordset

dim db as new adodb.connection

set db = currentproject.connection

rst.open "tbl_Kundendaten", db, adopenkeyset, adLockOptimistic

rst.addNew

rst![K_Name] = me.f_name

rst![K_Vorname] = me.f_name

rst.update

rst.close

Welche Variante ist die schnellere, speziell bei vielen Inserts/Updates? Welche macht in der Praxis weniger Probleme?

Gruß

Alex

Komisch... die Befehle, die Du unter ADO geschrieben hast, verwende ich immer unter DAO.... :confused:

Gruß

JayN

Klar, unter DAO gibt es die auch, für DAO verwende ich aber die obere Methode, für ADO kenne ich nur die untere.

Gruß

Alex

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.