I have a previous thread on a related topic here:
thread702-1623619
Now I am working on a new challenge. I have a main Events form. On that a subform of contacts, who have been invited to that event.
There is a button on the main form, which will open a pop-up form. The pop-up form has a multi-select listbox of the contacts, which can be selected. Once selected and the button on the pop-up form clicked, a record is created on the event subform for each contact, inviting them to the current event, and the pop-up form is closed.
Here is my issue. when a user launches the pop-up form, there is nothing to tell them if a contact in the listbox is already invited to this event.
I thought about doing any of the following:
A) filtering contacts out of the pop-up form listbox if they exist in the (not visible) subform of the events form
B) make a formula in the control source of the listbox to look for the contactid value in the subform. I did this. It looks like this:
This works for the first contact in the invited subform, but not for the rest.
If anyone has any thoughts about how to accomplish something like this, I would love the suggestions!
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot
thread702-1623619
Now I am working on a new challenge. I have a main Events form. On that a subform of contacts, who have been invited to that event.
There is a button on the main form, which will open a pop-up form. The pop-up form has a multi-select listbox of the contacts, which can be selected. Once selected and the button on the pop-up form clicked, a record is created on the event subform for each contact, inviting them to the current event, and the pop-up form is closed.
Here is my issue. when a user launches the pop-up form, there is nothing to tell them if a contact in the listbox is already invited to this event.
I thought about doing any of the following:
A) filtering contacts out of the pop-up form listbox if they exist in the (not visible) subform of the events form
B) make a formula in the control source of the listbox to look for the contactid value in the subform. I did this. It looks like this:
Code:
Last Name: IIf([tblContact]![PKContactdID]=[Forms]![frmEvent]![frmSubEventInvite].[Form]![cboContact],"*** " & [txtLName],[txtLName])
This works for the first contact in the invited subform, but not for the rest.
If anyone has any thoughts about how to accomplish something like this, I would love the suggestions!
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot