Hey, I'm not incredibly new to Access, but I do need some help on something that may be simple to you guys. I'm updating/improving a database that a Post Office is using to track packages across a college campus, and they want me to build a button that they can click to automatically send an email to the student to let them know, "Hey, your package arrived. Please print this email and bring it up to the counter to pick up your package." Simple enough, just a macro button for SendObject, have the student's email be in the "To" entry, and set it to not open up for editing. Just auto-send. Right, so this is the problem:
The Post Office has to keep records of upwards of 20,000 entries, with roughly 2000 students and 1000 faculty each fiscal year. The email needs to be a field that auto-completes itself as other information is filled in for the student. Right now, this is the format:
mary.sue359@students.berry.edu, which looks like this in the field format:
[First Name] & "." & [Last Name] & "???" & "@" & "???.berry.edu"
So, I'm not sure how to fill in those question marks. I know what needs to go in there, but not how to format the field to pull the information needed.
The student's ID number is a six-digit figure. The three digits following the name of the student are derived from a combination of the student's current year and the last two digits of the student's ID number. So, for instance, freshman are a 0, sophomores are a 1, juniors are a 2, and seniors are a 3. The last two digits of the number in the email are the same as the last two digits of the student ID number. So, for Mary Sue's example in the above, her status is a senior (inferred by the 3) and the last two digits of her ID number are 59. Make sense?
So, if I have a drop-down field for selecting whether the student is a freshman, sophomore, junior, or a senior, I need the email field to automatically fill in the appropriately related number (the first digit of the three digits for the email). Then if I set up an ID number field, I need the email field to automatically take the last two digits of the ID number. Finally, the second set of question marks needs to denote whether the person is a student or faculty member.
Please, any advice would be useful. This project is huge. Thank you!
The Post Office has to keep records of upwards of 20,000 entries, with roughly 2000 students and 1000 faculty each fiscal year. The email needs to be a field that auto-completes itself as other information is filled in for the student. Right now, this is the format:
mary.sue359@students.berry.edu, which looks like this in the field format:
[First Name] & "." & [Last Name] & "???" & "@" & "???.berry.edu"
So, I'm not sure how to fill in those question marks. I know what needs to go in there, but not how to format the field to pull the information needed.
The student's ID number is a six-digit figure. The three digits following the name of the student are derived from a combination of the student's current year and the last two digits of the student's ID number. So, for instance, freshman are a 0, sophomores are a 1, juniors are a 2, and seniors are a 3. The last two digits of the number in the email are the same as the last two digits of the student ID number. So, for Mary Sue's example in the above, her status is a senior (inferred by the 3) and the last two digits of her ID number are 59. Make sense?
So, if I have a drop-down field for selecting whether the student is a freshman, sophomore, junior, or a senior, I need the email field to automatically fill in the appropriately related number (the first digit of the three digits for the email). Then if I set up an ID number field, I need the email field to automatically take the last two digits of the ID number. Finally, the second set of question marks needs to denote whether the person is a student or faculty member.
Please, any advice would be useful. This project is huge. Thank you!