deckspin74
New member
- Local time
- Today, 03:56
- Joined
- Jun 21, 2005
- Messages
- 6
Hi,
I have created a database for my department which allows management to view staff training. In one particular form, the operator (management) can select a certain staff members name from a combo box and view what training that member has completed via a subform. Also in this form the operator can press a button to open another form which allows them to add a new completed training course for that member of staff. When all the fields in this form are completed the form can be closed and the new training course is automatically added to the subform of the first form.
What I would like is to create a personalised error message for duplicate training courses, if the member has already completed that course. I have searched on this forum and tried many of the solutions which other people required. But these didn't seem to work.
I should mention what the second form looks like.... When the training course form is opened from the first form, it shows the members name and staff number. The operator can select a training course from a combo box. Also on the form is a complete date field.
I've tried to put some vb in the before or after update event field of the form but with no luck of working. Anyone with some pointers for me?
I have created a database for my department which allows management to view staff training. In one particular form, the operator (management) can select a certain staff members name from a combo box and view what training that member has completed via a subform. Also in this form the operator can press a button to open another form which allows them to add a new completed training course for that member of staff. When all the fields in this form are completed the form can be closed and the new training course is automatically added to the subform of the first form.
What I would like is to create a personalised error message for duplicate training courses, if the member has already completed that course. I have searched on this forum and tried many of the solutions which other people required. But these didn't seem to work.
I should mention what the second form looks like.... When the training course form is opened from the first form, it shows the members name and staff number. The operator can select a training course from a combo box. Also on the form is a complete date field.
I've tried to put some vb in the before or after update event field of the form but with no luck of working. Anyone with some pointers for me?