Microsoft
Software
Hardware
Network
Question : Use an unbound column from a combo box
I have an Access form (named MainForm) used to submit queries. It has a combo box on it (named cmbStates). The combo box displays the unbound (column 1) which consists of state names spelled out (i.e. New York, California, etc). Column 2 of the combo box is the bound column and it consists of state abbreviations (i.e. NY, CA, etc).
On the report that is produced from running a query, I'm trying to be able to display the state name using the following in a textbox's control source:
=[Forms]![MainForm]![cmbSt
ates]
When I do so, it's displaying the state abbreviation. I guess because that is the bound column. I want to display the full state state name (column 1), not column 2. How do I do it? I tried something like this but it doesn't work:
=[Forms]![MainForm]![cmbSt
ates](1)
Answer : Use an unbound column from a combo box
you have to use a query as record source of the report
include in the query the Lookup table for state and use the State field as one of the column, with an Inner join in the State abbreviation field
Random Solutions
T-SQL Children of Parent Record
How to find the row count in an Oracle DataReader in ASP.NET?
Owner cannot modify distributioin group
How to get lightbox to show over Flash banner?
Out of Office Assistant not working w/Forwarding Configured
Redistributing RIP into OSPF non-contiguous subnets.
esx 4 passthrough
Issues with SCCM CCMSetup client
Manage Contacts in Active Directory / Exchange Distribution Lists
How do I combine 2 List<KeyValuePair<,>>'s into a DataTable using LINQ?