I have a combo box (cboContact) with multiple columns on a form:
ContactID | Name | RegionID
15 | Alan | 1
15 | Alan | 2
16 | Bob | 1
16 | Bob | 2
ContactID is the bound column.
The row source is:
I'm trying to set Me.cboContact = ([ContactID]=15 and [xRefRegionID] =2) using the on open event of the form.
How can I accomplish this?
Thanks,
Sup
ContactID | Name | RegionID
15 | Alan | 1
15 | Alan | 2
16 | Bob | 1
16 | Bob | 2
ContactID is the bound column.
The row source is:
Code:
SELECT tblContacts.ContactID, tblContacts.Name, tblContactRegions.xRefRegionID
FROM tblContacts INNER JOIN tblContactRegions ON tblContacts.ContactID = tblContactRegions.xRefContactID
I'm trying to set Me.cboContact = ([ContactID]=15 and [xRefRegionID] =2) using the on open event of the form.
How can I accomplish this?
Thanks,
Sup