ArchonSoft
Programmer
I tried to write into a table using the VBA code.
Here is the way I tried (where "historique" is the table I try to write to):
'variables declare
Dim rstWrite As Recordset
Dim dbsInOut As Database
'References to current database
>>>>Set rstWrite = dbsInOut.OpenRecordset("historique",
dbOpenDynaset)
'write to table historique
With rstWrite
.AddNew
!Nom = Nom
!Statut = Statut
!Lieux = Lieux
!HeureRetour = HeureRetour
!SuiviAppels = SuiviAppels
!Commentaires = Commentaires
End With
The problem appears to the line I identified (>>>>) a window pop telling me that "type mismatch". I have tried all possible type and no type to and nothing works properly, always the same message box.
Here is the way I tried (where "historique" is the table I try to write to):
'variables declare
Dim rstWrite As Recordset
Dim dbsInOut As Database
'References to current database
>>>>Set rstWrite = dbsInOut.OpenRecordset("historique",
dbOpenDynaset)
'write to table historique
With rstWrite
.AddNew
!Nom = Nom
!Statut = Statut
!Lieux = Lieux
!HeureRetour = HeureRetour
!SuiviAppels = SuiviAppels
!Commentaires = Commentaires
End With
The problem appears to the line I identified (>>>>) a window pop telling me that "type mismatch". I have tried all possible type and no type to and nothing works properly, always the same message box.