Hello everyone,
This is my first post here. I'm from Belgium, the Dutch speaking part. Generally speaking, English is usually not a problem for me. My knowledge of English Access terminology is limited however, so please bear that in mind when I try to translate
I should also add I'm familiar with the standard Access environment and SQL, but I have no knowledge of VBA.
Attached to this post, you'll find (a slimmed down version of) my database. I have tried to translate relevant field and table names to English.
On to my problem:
I want to be able to register the trainings that employees have attended. I use the table "WN_Trainings" to do so: one record per employee per training. Note that the same employee can follow the same training several times due to legal obligations, so the combination employee ID + training ID does not have to be unique in this table.
(The table "Trainings available" stores information on the trainings.)
Because multiple employees follow the same training at the same time, I want to be able to add them in one move.
For this, I have created the append query "HLP_Q_Add trainings". It should add records to the table "WN_Trainings". I use the form "Inputform for training" to control the query: the form gathers the information the query needs.
When I launch the append query, I get an error: conversion from the query to the table does not succeed.
I am unable to find the source of the problem. I have tried several things, including leaving out every field (one at a time) to try and locate the problem. I've also tried explicitly converting the query fields to the proper type. (As you will see in the query.)
Curious observations:
If I open the append query in design view and then run the form, I get to see what the query would add. It looks fine.
Also, I've made a variant of the append query using parameters. This also works fine. But... I want the form
It makes selecting employees and trainings much easier.
Can anyone help?
This is my first post here. I'm from Belgium, the Dutch speaking part. Generally speaking, English is usually not a problem for me. My knowledge of English Access terminology is limited however, so please bear that in mind when I try to translate

Attached to this post, you'll find (a slimmed down version of) my database. I have tried to translate relevant field and table names to English.
On to my problem:
I want to be able to register the trainings that employees have attended. I use the table "WN_Trainings" to do so: one record per employee per training. Note that the same employee can follow the same training several times due to legal obligations, so the combination employee ID + training ID does not have to be unique in this table.
(The table "Trainings available" stores information on the trainings.)
Because multiple employees follow the same training at the same time, I want to be able to add them in one move.
For this, I have created the append query "HLP_Q_Add trainings". It should add records to the table "WN_Trainings". I use the form "Inputform for training" to control the query: the form gathers the information the query needs.
When I launch the append query, I get an error: conversion from the query to the table does not succeed.
I am unable to find the source of the problem. I have tried several things, including leaving out every field (one at a time) to try and locate the problem. I've also tried explicitly converting the query fields to the proper type. (As you will see in the query.)
Curious observations:
If I open the append query in design view and then run the form, I get to see what the query would add. It looks fine.
Also, I've made a variant of the append query using parameters. This also works fine. But... I want the form

Can anyone help?
Attachments
Last edited: