Being a novice, I am trying to use a query to calculate when ColumnA & ColumnB are both true:
Rec ColumnA ColumnB ColumnC (result)
1 0 0 0 (if A=1 & B=1 then C=1)
2 1 0 0 (if A=1 & B=1 then C=1)
3 0 1 0 (if A=1 & B=1 then C=1)
4 1 1 1 (if A=1 & B=1 then C=1)
I tried, in the query:
count_ColC=true: IIf([ColumnA] & [ColumnB]=1,1,0)
Am I on the right track or is there an easier method. Thanks in advance.
Rec ColumnA ColumnB ColumnC (result)
1 0 0 0 (if A=1 & B=1 then C=1)
2 1 0 0 (if A=1 & B=1 then C=1)
3 0 1 0 (if A=1 & B=1 then C=1)
4 1 1 1 (if A=1 & B=1 then C=1)
I tried, in the query:
count_ColC=true: IIf([ColumnA] & [ColumnB]=1,1,0)
Am I on the right track or is there an easier method. Thanks in advance.