ik probeer via deze insert into query iets toetevoegen aan de database maar dan krijg ik de error: ' You can't reference a property or method for a control unless the control has the focus. ' 
wat doe ik fout
wat doe ik fout
code:
1
2
3
4
5
6
7
8
| Private Sub btnToevoegen_Click()
CurrentDb.Execute "INSERT INTO tblInschrijven VALUES ('" & (txtbonnr.Text) &
(txtNaam.Text) & (txtLandgoedcode.Text) & (txtVolgnr.Text) &
(txtMaandplaats.Text) & (txtHuisnr.Text) & (txtActiviteitNaam.Text) &
(txtLeeftijd.Text) & (txtDatum.Text) & (txtTijd.Text) & (Sleutel) & "');"
end Sub |
[ Voor 10% gewijzigd door Boertje op 07-05-2003 09:52 ]