I'm working with a Search & Rescue Foundation (KlaasKids.com) and I am trying to develop a small prototype MS Access Application that will be used to; 1) Register Volunteers to Search and 2) Assign Volunteers to Search Teams. I am NEW to Access, but I have a simple core application developed, but there is one function I would yet like to build and I am stuck ..... please help if you can. I hope I can explain this properly in the correct Access "lingo" - sorry if it's incorrect. Here goes.
The database only has 2 tables (people & tasks), people.lastname is bound to task.team_assignment. In the people table is the field people.out (defaults to no). This field indicates if a Volunteer Searcher has been assigned to a Search Team. If they have been assigned to a Search Team this needs to be changed to "Yes).
I have a form "Task & Team Assignments". This form operates against the task table, but I have a field (task.team_assignment) that has a table query that displays a people drop-down list that have a people.out that = "no". These are people available to be assigned to a Search Team. From the display list a name can be selected and the "lastname" is stored in the task.team_assignment field.
What I need to add (sorry it's taken a while to get to this, but I thought some background would help) ......
When the selection of the lastname is made on the form from the people list and posted to the task.team-assignment field I would like to trigger an "event procedure/code) to go to the people table and change the people.out value from "no" to "yes". This shows the person has been assigned to a Search Team and will show up on other Search Team inquiries and forms.
My problem .... I don't know VB syntax/commands or where the best position is to include the event-trigger, i.e. is "After Update" the best spot? It seems like I need a VB Update command point to the right people.lastname record and then change people.out from no to yes ........
If someone could point me to the right form trigger-position and provide me some starting VB code examples, I will fight my way to make this work - if it's possible!!
A BIG Thanks in advance to any help on this. Your assistance is greatly appreciated!
Ray Mooney
Pensacola, Fl
KlaasKids Foundation for Missing & Trafficked Children
The database only has 2 tables (people & tasks), people.lastname is bound to task.team_assignment. In the people table is the field people.out (defaults to no). This field indicates if a Volunteer Searcher has been assigned to a Search Team. If they have been assigned to a Search Team this needs to be changed to "Yes).
I have a form "Task & Team Assignments". This form operates against the task table, but I have a field (task.team_assignment) that has a table query that displays a people drop-down list that have a people.out that = "no". These are people available to be assigned to a Search Team. From the display list a name can be selected and the "lastname" is stored in the task.team_assignment field.
What I need to add (sorry it's taken a while to get to this, but I thought some background would help) ......
When the selection of the lastname is made on the form from the people list and posted to the task.team-assignment field I would like to trigger an "event procedure/code) to go to the people table and change the people.out value from "no" to "yes". This shows the person has been assigned to a Search Team and will show up on other Search Team inquiries and forms.
My problem .... I don't know VB syntax/commands or where the best position is to include the event-trigger, i.e. is "After Update" the best spot? It seems like I need a VB Update command point to the right people.lastname record and then change people.out from no to yes ........
If someone could point me to the right form trigger-position and provide me some starting VB code examples, I will fight my way to make this work - if it's possible!!
A BIG Thanks in advance to any help on this. Your assistance is greatly appreciated!
Ray Mooney
Pensacola, Fl
KlaasKids Foundation for Missing & Trafficked Children