问题描述
我正在尝试在表格中的行中列出数据,并根据其值将该数据转换为查询中的列。
I'm trying to take data listed in rows on a table and convert that data to columns in query based on their value.
表格:
目前我使用的是IIF语句,如 ContentSupports: IIf([StudentAccommAssignments]![AccommsCode] ='C','X','')和 LangSupports:IIf([StudentAccommAssignments]![AccommsCode] ='L','X','')。但是,
为有两个住宿的学生创建两条记录。如何让它出现在一行?
Currently I am using IIF statements like ContentSupports: IIf([StudentAccommAssignments]![AccommsCode]='C','X','') and LangSupports: IIf([StudentAccommAssignments]![AccommsCode]='L','X',''). However, that is creating two records for students who have both accommodations. How can I get it to appear on one row?
当前结果 (多行):
期望结果(一行):
推荐答案
您是否尝试过使用Crosstab查询?
Have you tried using a Crosstab query?
只是想一想......
Just a thought...
这篇关于使用唯一行创建多个计算字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!