I am in need of how to create a Dynamic Group ID .
I just clear it , I have two Subforms , in the first subform i have list box in which the name appears , everytime the list is changed when i select the some business function .
and submit this subform .the last subform will come in which i want that whatever the user appear in the prevoius subform they all will get mail at the same time when i submit the form .
for that i want to know how create group id that everytime the name will change .
You can send mails without creating a group. The SendTo field of mail document can take multiple values. In your program create an array of addresses and assign this array to SendTo field.
Set copytoitem = Maildoc.GetFirstItem("CopyTo")
Set memberitem= uidoc.GetFirstItem("field name")
Forall mem In memberitem.Values
Call copytoitem.AppendToTextList(Cstr(mem))
End Forall 'manish comment
You can send mails without creating a group. The SendTo field of mail document can take multiple values. In your program create an array of addresses and assign this array to SendTo field.