I think you have made a good start,and Twinny's posts certainly will put you on the right track, but setting up tables correctly and having meaningful field names is a great help.
You need 3 tables, 1 for Employees holding information solely about that person. Absolutely nothing to do with courses.
-
TblEmployees
-
EmployeeID AutoNumber Primary Key
-
EmpLastName Text
-
EmpFirstName Text
-
EmpAddress1 Text
-
EmpAddress2 Text
-
EmpAddress3 Text
-
EmpTown Text
-
EmpCounty Text
-
EmpPostCode Text
-
EmpEmail Text
-
EmpPhone Text
-
etc.
-
Note 2 points
1) There are no spaces in the field names (so you don't need to
use square brackets [] round the names
2) There should only be 1 word in each field. It is comparatively easy to combine fields together (EmpFirstName & EmpLastName to give EmpName. Splitting John Edward Smith into first & last names is much trickier.
Table of courses
- TblCourses
-
CourseID AutoNumber Primary Key
-
CourseName Text
-
CourseCost Currency
-
CourseStartDate Date
-
etc
So now you have 2 independent tables. The Employees stand on their own, and could also be used for say grades achieved, and the Course table is there, regardless of whether or not there are any students attending.
Now the important table which puts the student on the course
-
TblJoinEmployeeCourse
-
CourseID Long Number Joint Primary Key
-
EmployeeID Long Number Joint Primary Key
-
CourseDate Date
-
Fee Currency
-
DatePaid Date
-
Grade Number?
-
Comments Text
-
etc.
Set up relationships between the 3 tables and enforce referential integrity.
Now to your form.
On the header, you need a combo box to select on which course you are entering the Employees together with the course date.
The single select list box or Combo Box showing the Employees is fine (except I suspect nobody will know the EmployeeID Number, so just use the names sorted alphabetically.
There should be a continuous subform showing the employees selected. As each employee is selected from the list box, we add this to the subform, and remove that person from the list box. Equally, if you have a wrong employee on your subform, you delete it and add the person back to your list box.
This is only a (brief) outline. When you get stuck or have any questions, I'm sure Twinny or I will help you on your way.
As an aside, I am extremely ancient, and have difficulty in reading the small print on your form. For the sake of the ancient ones, can you use 12 point fonts. The only justification I can see for small fonts is where there are a hell of a lot of controls on your form, and space is tight.
Phil