Microsoft
Software
Hardware
Network
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
String or binary data would be truncated.
How to override some Machine.config info
Terminal Services Load Simulation Microsoft Windows Server 2003
access error 3799 when backup or compact and repair
Excel started crashing
VBA code to rename file based on cell value
SQL Server problem with date format
Overlap CTreeCtrl and multiline CEdit in dialog
DFS not replicating certain files
WCF service error when trying to connect to SQL Request for the permission of type 'System.Data.SqlClient.Sql<wbr />ClientPerm<wbr />ission, System.Data