Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert for subform

Status
Not open for further replies.

bubba100

Technical User
Nov 16, 2001
493
US
I have imported an Excel spreadsheet where each row is one record. There is an ID number for the record, several fields with unique information and various states that may or may not have a numeric entry. I can extract the record and place specific parts in listboxes/or textboxes. My problem is trying figure how how to convert the states with numbers and instead of showing horizonial have them vertical so they fit into a subform, easier to see up and down not across. I can use the following query to extract all the states for that ID.

SELECT SLIC_Trips.ID, SLIC_Trips.[IN], SLIC_Trips.AL, SLIC_Trips.AR, SLIC_Trips.IA, SLIC_Trips.IL, SLIC_Trips.KY, SLIC_Trips.MI, SLIC_Trips.MN, SLIC_Trips.MO, SLIC_Trips.MS, SLIC_Trips.NC, SLIC_Trips.NY, SLIC_Trips.OH, SLIC_Trips.PA, SLIC_Trips.SC, SLIC_Trips.TN, SLIC_Trips.VA, SLIC_Trips.WI, SLIC_Trips.WV
FROM SLIC_Trips
WHERE (((SLIC_Trips.ID)=[Forms]![frmSLIC]![TxtRecID]));

It would make it much easier to read if only those states with a value would appear. Comfused?
 
Do a search for normalization union query.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top