1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| Private Sub Commande41_Click()
On Error GoTo Err_Commande41_Click
Dim MaBase As Database, rst As Recordset
Set MaBase = CurrentDb
Set JeuEnregistrement = MaBase.OpenRecordset("TABLE EXPEDITION")
With JeuEnregistrement
.AddNew
![CLIENT] = Texte27
![N° D'AFFAIRE] = Texte29
![N° DE LIGNE] = [N° DE LIGNE]
![DATE DE LIVRAISON PREVUE] = Texte31
![DATE DE DEPART CURTY PRECISION] = Texte33
![DATE D'ARRIVEE THEORIQUE SELON TRANSPORTEUR] = Texte35
![TRANSPORTEUR] = Texte37
![ECART ENTRE DATE DE LIVRAISON PREVUE ET DATE THEORIQUE D'ARRIVEE] = Texte39
.Update
End With
MaBase.Close
Texte27 = ""
Texte29 = ""
[N° DE LIGNE] = ""
Texte31 = ""
Texte33 = ""
Texte35 = ""
Texte37 = ""
Texte39 = ""
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Exit_Commande41_Click:
Exit Sub
Err_Commande41_Click:
MsgBox Err.Description
Resume Exit_Commande41_Click
End Sub |
Partager