Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Use value from Field to create FieldName in new Ta

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-08-22 : 22:30:41
Newt submitted "I have a table in an Access 2000 database: [SAP_Survey_Answers] that contains FieldNames: CO_ID, ES_ID,
[PKey, QFieldName, QAnswer. The *_ID are ID#, QFieldName lists the questions in a survey, & QAnswer corresponds
to the QFieldName and gives the answer given by the customer. Here's the dilema: I need to create a new table with
CO_ID, ES_ID as Field Names BUT I also need each question as a new field name. How can this be done? Query?
SQL statement? I've been racking my brain on this one. Any help would be greatly appreciated!"

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2004-08-22 : 22:59:10
Have you tried using a Crosstab query? This should do what you need
Go to Top of Page
   

- Advertisement -