Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
827 views
in Technique[技术] by (71.8m points)

pivot - pivoting large table in MS Access

I'd like to pivot a table, similar in structure to the one below:

enter image description here

To display as follows:

enter image description here

The actual table I'm using has over 1.6 million rows, and 1500+ different field values (field 1, field 2, field 3, etc) currently in the Field column. The goal is to pivot the contents to make the table less unwieldy to work with. The Field_Answers are mostly of the Long-Text data type, which seems to be a problem, as I am getting the error:

"Cannot have Memo or OLE Object fields in aggregate argument"

I'm currently trying to use the query below, which returns the above-stated error:

TRANSFORM Max(mytable.FieldAnswer)

SELECT mytable.ID
FROM mytable

GROUP BY mytable.ID

PIVOT mytable.Field
question from:https://stackoverflow.com/questions/65598421/pivoting-large-table-in-ms-access

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...