Data between Forms and Subforms
Hi people
I have a form which will take details from user input and relates to types of training courses which get organised. What i'd like to do is have the last field on the form (Nuber of trainees on the course) populate automatically depending on the result of a query.
What i have got at the moment is the main form and then on that an invisible subform which runs the query and outputs the correct answer. I want to take the value from the sub form and populate the field on the main form that should store the number of trainees on a specific course. This is not working at the moment.
I have also tried to set the default value of the field (number of trainees on course) to the query output but this didn't work either.
I'm relatively new to access so this may or may not make sense.
Any help would be greatly appreciated.
Thanks
Hi people
I have a form which will take details from user input and relates to types of training courses which get organised. What i'd like to do is have the last field on the form (Nuber of trainees on the course) populate automatically depending on the result of a query.
What i have got at the moment is the main form and then on that an invisible subform which runs the query and outputs the correct answer. I want to take the value from the sub form and populate the field on the main form that should store the number of trainees on a specific course. This is not working at the moment.
I have also tried to set the default value of the field (number of trainees on course) to the query output but this didn't work either.
I'm relatively new to access so this may or may not make sense.
Any help would be greatly appreciated.
Thanks
Last edited: