kstaelens
New member
- Local time
- Today, 15:34
- Joined
- Jan 17, 2024
- Messages
- 7
Hi!
In short: I've got a database where I put in details of people who followed courses and with some macro's and links to Word, I can send them their certificate automaticly by mail.
To explain the issue I have, I'll give you the necessary details of the "impacted" details:
My problem: When entering the details of a course; I'd like Access to search for existing details of a pupil when entering a name; if he doesn't find it, I'd be able to add it. Of course the purpose is to keep my Pupils-table clean, with unique entries. I've searched Youtube, googled it and asked ChatGPT, but I'm not able to create the function I want.
I've added a simplified file, to show what it is I want, would be great if I could make it working
In short: I've got a database where I put in details of people who followed courses and with some macro's and links to Word, I can send them their certificate automaticly by mail.
To explain the issue I have, I'll give you the necessary details of the "impacted" details:
- Three tables:
- Courses: details of each course (fields: CourseID and Course)
- Pupils: details of all participants, unique and no multiple entries (fields: PupilID, First Name, Last Name, DateOfBirth, Birthplace)
- Participants: Add each participant for each course (fields: ParticipantID, PupilID, CourseID, Certificate)
- I've made a query to combine the three of these tables (CoursesDetails)
- There is a form, "Input" where I fill in the details of each course. I added a subform which is linked to the query I made before.
My problem: When entering the details of a course; I'd like Access to search for existing details of a pupil when entering a name; if he doesn't find it, I'd be able to add it. Of course the purpose is to keep my Pupils-table clean, with unique entries. I've searched Youtube, googled it and asked ChatGPT, but I'm not able to create the function I want.
I've added a simplified file, to show what it is I want, would be great if I could make it working