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
Deny Ability to open additional mailboxes in Outlook
ASP.NET to Sharepoint: master page, types, and other problems
Connect to a Crosstab query in Access from Excel
Microsoft Reporting Services Event Log Error
Windows Home Vista fails to startup - Black screen with mouse pointer
way to get min (or max) of field in query for report
Urgent System.UnauthorizedAccessE<wbr />xception
kerberos client received a KRB_AP_ERR_MODIFIED error
Drive Letter on Boot Partition .... Made a Mistake
copying os off 1 hard drive to another using windows 7 and USB