hi, i have a problem, here is the code i wrote (i left out some of the declarations) but when i run it i get an error message which says the following:
microsoft access can't append all the records in the append query.
microsoft access set 1 field(s) to Null due to a type conversion failure, and it didn't add 0 record(s) to the table due to key violations, 0 record(s) due to lock violations, and 0 record(s) due to validation rule violations.
do you want to run the action query anyway?
to ignore the error(s) and run the query, click yes...
************************************************
Private Sub Creerbtn_click()
Dim strSQL as string
Dim no_res as integer
Dim nom as string
dim prenom as string
dim etudiant_ouinon as string
etc..
me.resnumberscbo.value = no_res
me.nomtxt.value = nom
me.prenomtxt.value = prenom
me.etudiantlst.value = etudiant_ouinon
me.chambrenumerocbo.value = no_chambre
etc...
strSQL = "INSERT INTO residents VALUES('no_res', 'prenom', 'nom'," & _
"'no_chambre', 'etudiant_ouinon', 'admin_ouinon', 'date_naissance'," & _
"'annee_etude', 'address', 'codepostale', 'localite', 'pays')"
DoCmd.RunSQL strSQL
End Sub
***************************
i don't know where i went wrong, or what the error is?
thankyou for your help