使用唯一行创建多个计算字段 [英] Creating multiple calculated fields with unique rows

查看:61
本文介绍了使用唯一行创建多个计算字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在表格中的行中列出数据,并根据其值将该数据转换为查询中的列。 

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? 

当前结果 (多行):




期望结果(一行):




推荐答案

Hi Kay,

Hi Kay,

您是否尝试过使用Crosstab查询?

Have you tried using a Crosstab query?

只是想一想......

Just a thought...


这篇关于使用唯一行创建多个计算字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆