简体   繁体   English

比较不同列中的两个数字

[英]Comparing two numbers in different columns

Perners Coursetype ID   Completed   Missing
10169299    71013531    X   
10169299    71004455    X   
10169299    71013525    X   
10169299    71013534    X   
10169299    71013529    X   
10169299    71013526    X   
10169299    71009239    X   
10169299    71014108    X   
10169299    71013533    X   
10169299    71004680    X   
10169299    71005007    X   
10169299    71013528        X
10169299    71014101    X   
10169299    71014102    X   
10169299    71014106    X   
10169299    71014105    X   
10169299    71014103    X   
10169299    71014107    X   
10169299    71013707    X   
10169299    71006168    X   
10169299    71005010    X   
10169299    71013527    X   
10169299    71014776    X   

I'm trying to show that if some one took 71013528 or 71014776 then both classes were completed in an Access Database.我试图表明,如果有人选择了 71013528 或 71014776,那么这两个类都是在 Access 数据库中完成的。

If you just want to represent it for example in a query output you can use IIF in combination with Dlookup .如果您只想在查询输出中表示它,您可以将IIFDlookup结合使用。 maybe like this: IIF(Coursetype ID=71013528 or CourstypeID=71014776,IFF(Dlookup(Completed,TableName,CoursetypeID=71014776)=x OR Dlookup(Completed,TableName,CoursetypeID=71013528)=x,x,Completed),Completed) (hope it's not to mixed up, but you'll get the idea).也许是这样的: IIF(Coursetype ID=71013528 or CourstypeID=71014776,IFF(Dlookup(Completed,TableName,CoursetypeID=71014776)=x OR Dlookup(Completed,TableName,CoursetypeID=71013528)=x,x,Completed),Completed) (希望不要混淆,但你会明白的)。

However your data should be correct in the first place, you should handle that in the form where a user inserts the data.但是,您的数据首先应该是正确的,您应该以用户插入数据的形式处理它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM