Question : Populating Combo Values

How can I restrict the following combo values such that it only populates certain items but restrict others.
From example in frmPopup:

cboSType is bounded to tblSTYpe

cboSType:
Row Source: SELECT tblSType.STypeID, tblSType.SType FROM tblSType;

Column Bound = 2
Column Width = 0";2"
Column Count = 1
*********

Here is tblSType:

STypeID              STYpe
   CM                   OnCampus
   SA                    OffCampus
   ST                    Online

How can I restrict cboSType such that it only display "OnCampus" but restrict "OffCampus" and "Online" from showing on the combo.

Answer : Populating Combo Values

In design mode right click your combo box and select properties. Under the Data tab click the box on the far right of Row Source. In the query field STypeID, set the criteria to CM.

Flyster
Random Solutions  
 
programming4us programming4us