J
Joshua Powell
(I tried really hard to come up with a more descriptive subject name
but... this problem is sort of obtuse)
I am building a database that keeps track of volunteers. Theres a
table of volunteership types and a table that says what volunteership
types individuals are interested in. The main form has a listbox that
populates with what interests have been selected. I want users to
open a popup form and get a multiselect listbox to click on each of
the interests the volunteer will be associated with. Then later if
they want to edit I want it to open the same popup form that
automatically highlights all of the values they've already been
associated with, so the user can select more or deselect as they
please, then repopulate the main forms listbox with their new
selections.
________________________________________________________________________
FORM/TABLE/FIELD Definitions:
(Those with an asterisk are Primary Key, Auto-Number.)
frmKids (main form)
lstInvolvementDetails (This has the interests already associated with
the volunteer)
frmVolunteerInterests (pop-up form)
lstInterests (this is all interest options)
tblIndividuals (lngIndividualID*, etc.)
tblVolunteers (lngVolunteerID*,lngIndividualID)
tblVolunteershipTypes (lngVolunteershipTypeID*, strVolunteershipType)
tblVolunteerInterests (lngVolunteerID, lngVolunteershipTypeID)
____________________________________________________________________________
I'm guessing that I need frmVolunteerInterests to have a query as the
Record Source:
SELECT tblVolunteerInterests.lngVolunteerID,
tblVolunteers.lngIndividualID,
tblVolunteerInterests.lngVolunteershipTypeID FROM tblVolunteers INNER
JOIN tblVolunteerInterests ON tblVolunteers.lngVolunteerID =
tblVolunteerInterests.lngVolunteerID WHERE
(((tblVolunteers.lngIndividualID)=[forms]![frmKids]![txtIndividualID]));
Beyond that I don't know what I should do...
but... this problem is sort of obtuse)
I am building a database that keeps track of volunteers. Theres a
table of volunteership types and a table that says what volunteership
types individuals are interested in. The main form has a listbox that
populates with what interests have been selected. I want users to
open a popup form and get a multiselect listbox to click on each of
the interests the volunteer will be associated with. Then later if
they want to edit I want it to open the same popup form that
automatically highlights all of the values they've already been
associated with, so the user can select more or deselect as they
please, then repopulate the main forms listbox with their new
selections.
________________________________________________________________________
FORM/TABLE/FIELD Definitions:
(Those with an asterisk are Primary Key, Auto-Number.)
frmKids (main form)
lstInvolvementDetails (This has the interests already associated with
the volunteer)
frmVolunteerInterests (pop-up form)
lstInterests (this is all interest options)
tblIndividuals (lngIndividualID*, etc.)
tblVolunteers (lngVolunteerID*,lngIndividualID)
tblVolunteershipTypes (lngVolunteershipTypeID*, strVolunteershipType)
tblVolunteerInterests (lngVolunteerID, lngVolunteershipTypeID)
____________________________________________________________________________
I'm guessing that I need frmVolunteerInterests to have a query as the
Record Source:
SELECT tblVolunteerInterests.lngVolunteerID,
tblVolunteers.lngIndividualID,
tblVolunteerInterests.lngVolunteershipTypeID FROM tblVolunteers INNER
JOIN tblVolunteerInterests ON tblVolunteers.lngVolunteerID =
tblVolunteerInterests.lngVolunteerID WHERE
(((tblVolunteers.lngIndividualID)=[forms]![frmKids]![txtIndividualID]));
Beyond that I don't know what I should do...