Created
November 14, 2023 17:46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim cn As ADODB.Connection | |
Dim rs As ADODB.Recordset | |
' Verbindung und Recordset initialisieren | |
Set cn = New ADODB.Connection | |
cn.Open "IhrVerbindungsString" | |
Set rs = New ADODB.Recordset | |
rs.Open "SELECT * FROM Haupttabelle", cn, adOpenStatic, adLockOptimistic | |
' Durch das Recordset iterieren | |
Do Until rs.EOF | |
' Hier können Sie mit den Daten arbeiten | |
rs.Fields("Feldname").Value = "Neuer Wert" | |
rs.Update | |
rs.MoveNext | |
Loop | |
' Ressourcen freigeben | |
rs.Close | |
Set rs = Nothing | |
cn.Close | |
Set cn = Nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment