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
Changing from Split Access DB in 2007 to SQL Server
Using Range(Cells(r1,c1),Cells(r<wbr />2,c2)) instead of Range("A1:B2")
I have 9 Cursore need to make one report
Intel Pro/1000 MT (Single Port) - Teaming Options Not Shown In Device Manager on Windows 2003 32-bit
Click Context Menu, opened by mshtml.IHTMLElement
ASP.NET reading, creating Excel files
VBA - Multiple outputs from one function
Number of days between two dates
the vfp odbc ole db provider give me an error when i run in windows seven
insert query in code behind asp.net