Hi All
I have a main form "frmContactReport" with a text box called "Attendees".
On click another form opens and it displays all contacts relevent to the current customer (master form with a continuous subform). what i would like to do is check next to the relevent customer contacts which in turn will add the contacts to the attendees text box, for example:
selecting each name will populate the text box as follows:
Fred Bloggs;Tony Blair;Fred Flintstone
Could any one help me to achieve this?
Tried this and its not working:
strSQL = "INSERT INTO CustomerReport (Attendees)
SELECT (forms!frmContactAdd!CustomerID.Value), CustomerContact.Name
FROM CustomerContact
where (((CustomerContact.CustomerID)=[forms]![frmContactAdd]![CustomerID])
AND ((CustomerContact.AddContact)=True))"
DoCmd.RunSQL strSQL
ALi
I have a main form "frmContactReport" with a text box called "Attendees".
On click another form opens and it displays all contacts relevent to the current customer (master form with a continuous subform). what i would like to do is check next to the relevent customer contacts which in turn will add the contacts to the attendees text box, for example:
selecting each name will populate the text box as follows:
Fred Bloggs;Tony Blair;Fred Flintstone
Could any one help me to achieve this?
Tried this and its not working:
strSQL = "INSERT INTO CustomerReport (Attendees)
SELECT (forms!frmContactAdd!CustomerID.Value), CustomerContact.Name
FROM CustomerContact
where (((CustomerContact.CustomerID)=[forms]![frmContactAdd]![CustomerID])
AND ((CustomerContact.AddContact)=True))"
DoCmd.RunSQL strSQL
ALi