T
Tsilatipac
I am very new so I apologize for the fusilade of questions to follows. I
have been searching the web and this forum and find pieces but not enough for
me to put together...
Here is my problem:
tblActivity
ActivityID, Primary Key-Autonum
ActivityDesc, Text
ActivityCreateDate, Date
ActivityCloseDate, Date
etc...
tblPeople
PeopleID, Primary Key-Autonum
PeopleNameLast, Text
PeopleNameFirst, Text
PeopleTitle, Text
etc...
tblActivityOwners
ActivityID, Foreign Key-Number
PeopleID, Foreign Key-Number
I created a form for entering the activity information. On this form is an
unbound multiselect listbox and I chose "will remember for later" during the
wizard. Now it's time to cut code and I cannot seem to get started. Here
are the things I need to do:
(1) When the form loads, check to see if there is data for this activity in
tblActivityOwners. If there is, prehighlight the listbox with the owners so
we can see who are already identified as the owners.
(2) When the activity record is updated, delete any entries for this activity
in tblActivityOwners and write the new selections (if any) to
tbleActivityOwners to capture any changes made.
(3)Put a button beside the listbox to add a new person. OnClick open a small
form to add a record to tblPeople. Click "Okay"button and close form then
requery the listbox highlighting people for this activity in
tblActivityOwners. I don't care if we need to click on the person(s) we just
added.
GEEZ!!! All this grief from one little listbox. This same set of activities
must be done all of the time. It would make a good case study to post
somewhere because I cannot find it anywhere. Of course, knowing where to
look is usually 9/10's of the battle.
Thanks for any help or pointers.
have been searching the web and this forum and find pieces but not enough for
me to put together...
Here is my problem:
tblActivity
ActivityID, Primary Key-Autonum
ActivityDesc, Text
ActivityCreateDate, Date
ActivityCloseDate, Date
etc...
tblPeople
PeopleID, Primary Key-Autonum
PeopleNameLast, Text
PeopleNameFirst, Text
PeopleTitle, Text
etc...
tblActivityOwners
ActivityID, Foreign Key-Number
PeopleID, Foreign Key-Number
I created a form for entering the activity information. On this form is an
unbound multiselect listbox and I chose "will remember for later" during the
wizard. Now it's time to cut code and I cannot seem to get started. Here
are the things I need to do:
(1) When the form loads, check to see if there is data for this activity in
tblActivityOwners. If there is, prehighlight the listbox with the owners so
we can see who are already identified as the owners.
(2) When the activity record is updated, delete any entries for this activity
in tblActivityOwners and write the new selections (if any) to
tbleActivityOwners to capture any changes made.
(3)Put a button beside the listbox to add a new person. OnClick open a small
form to add a record to tblPeople. Click "Okay"button and close form then
requery the listbox highlighting people for this activity in
tblActivityOwners. I don't care if we need to click on the person(s) we just
added.
GEEZ!!! All this grief from one little listbox. This same set of activities
must be done all of the time. It would make a good case study to post
somewhere because I cannot find it anywhere. Of course, knowing where to
look is usually 9/10's of the battle.
Thanks for any help or pointers.