I tried to do this but I keep on getting a compiler error and when I try to debug it stops at .categorie
This is my code
******************************
Private Sub Btn_OK_Click()
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("Urg_MedicaleDescrip"
With rs
.AddNew
.Categorie = Me!Categorie
.Priorite = Me!Priorite
.descriptions = Me!description
.Lieux = Me!Lieux
.Niveau = Me!Niveau
.Emplacement = Me!Emplacement
.precision = Me!précisions
.Telephone = Me!Telephone
.NumEmployé = Me!NoEmpl
.nomfamille = Me!DemandeurNom
.commentaires = Me!commentaires
.sexe = Me!sexe
.age = Me!age
.consciencedescription = Me!EtatCons
.respiration = Me!respiratoire
.pouls = Me!pouls
.Informations = Me!Informations
.Agt1 = Me!Agt1
.Agt2 = Me!Agt2
.Agt3 = Me!Agt3
.Agt4 = Me!Agt4
.Agt5 = Me!Agt5
.Agt6 = Me!Agt6
.Agt7 = Me!Agt7
.Ambu = Me!Ambu
.patrouille = Me!patrouille
.HrsSupSecAvise = Me!HrsSupSecAvise
.HrsSurvAvise = Me!HrsSurvAvise
.HrsEntMenAvise = Me!HrsEntMenAvise
.HrsAviseInfirm = Me!HrsAviseInfirm
.HrsClientDirect = Me!HrsClientDirect
.HrsRendrePlace = Me!HrsRendrePlace
.HrsRegul = Me!HrsRegul
.HrsUrgSante = Me!HrsUrgSante
.HrsPolice = Me!HrsPolice
.HrsPompier = Me!HrsPompier
.HrsRecu = Me!HrsRecu
.HrsDebut = Me!HrsDebut
.HrsFin = Me!HrsFin
.IncidentIdicatif = Me!IncidentIdicatif
.IncidentSeq = Me!IncidentSeq
.hospitalierdescription = Me!CentreHosp
.Update
.Close
End With
My table is called "Urg_MedicaleDescrip" and it included all the fields listed above, except for my MedicaleDescripID which is an autonumber..