B
Ben8765
Hi,
I would like to populate an entire field in a query with the value of a cell
(from another field).
Table1:
FieldA
1
2
3
4
I would like to populate Expr1 in a query with the cell that equals 4.
It should look like this:
FieldA Expr1
1 4
2 4
3 4
4 4
I've tried to do this with this line of sql:
Expr1: IIf([FieldA]=4,[FieldA],[FieldA])
But instead, it returns each value of FieldA (1,2,3,4) and not all 4's:
FieldA Expr1
1 1 [should be 4]
2 2 [should be 4]
3 3 [should be 4]
4 4
How can i do this?
Thanks,
-Ben
I would like to populate an entire field in a query with the value of a cell
(from another field).
Table1:
FieldA
1
2
3
4
I would like to populate Expr1 in a query with the cell that equals 4.
It should look like this:
FieldA Expr1
1 4
2 4
3 4
4 4
I've tried to do this with this line of sql:
Expr1: IIf([FieldA]=4,[FieldA],[FieldA])
But instead, it returns each value of FieldA (1,2,3,4) and not all 4's:
FieldA Expr1
1 1 [should be 4]
2 2 [should be 4]
3 3 [should be 4]
4 4
How can i do this?
Thanks,
-Ben