PARAMETERS [Eingabe am] DATETIME, Uhrzeit DATETIME, Bereich LONG, Linie LONG, ProdNr TEXT(255), Radstand TEXT(255), Farbcode TEXT(255), Batchwert TEXT(255)
INSERT INTO TabFahrzeuge ([Eingabe am], Uhrzeit, Bereich, Linie, ProdNr, Radstand, Farbcode, mp1, mp2, mp3, mp4, mp5, mp6, mp7, mp8, mp9, mp10, mp11, mp12, mp13, mp14, mp15, mp16, mp17, mp18, mp19, mp20, mp21, mp22, mp23, mp24, mp25, mp26, mp27, mp28, mp29, mp30, mp31, mp32, mp33, mp34, mp35, mp36, mp37, mp38, mp39, mp40, mp41, mp42, mp43)
SELECT [Eingabe am], Uhrzeit, Bereich, Linie, ProdNr, Radstand, Farbcode, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert;Public Sub FahrzeugeAnfuegen()
Dim db As Database
Dim rstQuelle As Recordset
Dim qdfZiel As QueryDef
Dim lngCount As Long
Set db = CurrentDb
Set rstQuelle = db.OpenRecordset("Neue Tabelle", dbOpenDynaset)
Set qdfZiel = db.QueryDefs("qryFahrzeugAnfuegen")
With qdfZiel
.Parameters("Eingabe am").Value = EingDatum
.Parameters("Uhrzeit").Value = Uhrz
.Parameters("Bereich").Value = o
.Parameters("Linie").Value = n
.Parameters("ProdNr").Value = a
.Parameters("Radstand").Value = m
.Parameters("Farbcode").Value = z
End With
With rstQuelle
Do Until .EOF
For lngCount = 1 To 3
qdfZiel.Parameters("Batchwert").Value = .Fields("Batch" & lngCount)
qdfZiel.Execute
Next
.MoveNext
Loop
End With
End SubPARAMETERS [Eingabe am] DATETIME, Uhrzeit DATETIME, Bereich LONG, Linie LONG, ProdNr TEXT(255), Radstand TEXT(255), Farbcode TEXT(255), Batchwert TEXT(255);
INSERT INTO TabFahrzeuge ([Eingabe am], Uhrzeit, Bereich, Linie, ProdNr, Radstand, Farbcode, mp1, mp2, mp3, mp4, mp5, mp6, mp7, mp8, mp9, mp10, mp11, mp12, mp13, mp14, mp15, mp16, mp17, mp18, mp19, mp20, mp21, mp22, mp23, mp24, mp25, mp26, mp27, mp28, mp29, mp30, mp31, mp32, mp33, mp34, mp35, mp36, mp37, mp38, mp39, mp40, mp41, mp42, mp43)
SELECT [Eingabe am], Uhrzeit, Bereich, Linie, ProdNr, Radstand, Farbcode, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert, Batchwert;qdfZiel.Parameters("Batchwert").Value = .Fields("Batch" & lngCount)
Feldinhalt einer Access Tabelle mit Wert im Recordset vergleichen
Dwessing 05.02.2007 - 260 Hits -
Per VBA an Wert aus Abfrage zugreifen
Booyeoo 07.07.2007 - 19 Hits - 1 Antwort
Bericht aus Recordset erstellen
Vossibaer 15.08.2007 - 97 Hits - 2 Antworten
schleife beim installieren von winxp
reese 18.11.2007 - 72 Hits - 8 Antworten
Daten aus dem Excel in die Datenbank schreiben
Sleezer 05.02.2008 - 60 Hits - 1 Antwort