Microsoft
Software
Hardware
Network
Question : Combo Box display text vs. actual text
I have 3 combo boxes that are populated using the names of the columns in a database. I was wondering if I could somehow change the displayed text in the combo. So instead of the user seeing:
TenantName
City
FRorCorp
AskCAP
They would see:
Tenant Name
City
Franchise or Coporate
Asking CAP
The code I am using to populate the combo boxes is
SELECT a.TenantName, b.City, c.FRorCorp, d.AskCAP FROM tblTenants a
This is being use for a pop up filter
Thanks
Answer : Combo Box display text vs. actual text
You can use output column names:
SELECT a.TenantName AS [Tenant Name], b.City, c.FRorCorp AS [Franchise or Coporate], d.AskCAP AS [Asking CAP] FROM tblTenants a
Random Solutions
Entension vs Regular Dll in MFC?
How to Create an On Key Press Event in Visual Studio 2005
Simple SQL Join Query Syntax Issue
CToolBar derived Toolbar repositioning
Computer Freezes when entering standby and hibernate
Append.dif file to Access 2007 table
Pass variable from one field to the next and save variable in table
I want the richtextbox scroll stick to the buttom instead of the top. How?
Comparing Data between two tables
DNS records for TLS in OCS 2007 R2