2 columns into one

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!
I have a table with two columns of amounts, and I want to create query with
a new column where those are summarized.
One of the columns (C1) is more "trustworthy" than the other, so I want the
new column to show the value from C1 if there is one, and if not, the value
from C2. for each row.

Example
C1 C2 Result
55 64 55
477 477
664 664
224 224

8839 8839
 
In the Field row of your query, enter:
Result: Nz([C1], [C2])

It's probably better to work with this just like that as a calculated
column, rather than storing a Result column, and populating it with an
Update query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top