If you need it in query then it would be something like this: (Tested already)
SELECT Table1.Col1, Table1.Col2, IIf(IsNull(Table1.Col1),0,Table1.Col1) AS x1, IIf(IsNull(Table1.Col2),0,Table1.Col2) AS x2, ([x1]+[x2]) AS Col3
FROM Table1;
This will give you an idea.
Note that your data type field of the original table should be numeric
HTH
Ashfaque
|