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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a table from a recordset

Status
Not open for further replies.

telephoto

Technical User
Nov 3, 2002
210
GB
I have a table with 220 records, I am interested in one field called "post" Value could be "A1", "A2" etc

I want to set up a table with each of these records as fields with a yes/no box (ie field name "A1" datatype yes/no)

It must surely be possible with tabledef somehow in order to save me a load of typing, can anyone help here please?
 
Ok guys.
It's easy. Sorry I asked, the answer just came to me.
Forget tabledef.


For any wanting to do this, follow the instructions below.

Export the first table as an Excel file.
Open Excel and delete all except the column required to be the new field names. Sort by value if required. (In col A, say).
Select all the names, move to cell B1 and right click, Select paste special and transpose. Delete col A.
(In my case I wanted yes/no boxes, so in row 2 enter "true" for each cell)
Save the file

Back to Access and import data, type Excel, and accept the wizard's offerings.

voila!

Telephoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top