save calculated field

G

Guest

I have a table containing FieldA, FieldB, and Field C. For each record, I
want to add FieldA + FieldB and store the result in FieldC. I then need to
save the table as a txt file and send to someone. Using FieldC: [FieldA] +
[FieldB] in an update query doesn't apparently let me save the contents of
each FieldC. I know I'm overlooking something that should be pretty simple.
Help! How do i do this?
 
D

Dan Artuso

Hi,
Using an Update query *will* update fieldC, thus 'saving' it.

UPDATE yourTable SET FieldC = FieldA + FieldB;
 
J

John Vinson

I have a table containing FieldA, FieldB, and Field C. For each record, I
want to add FieldA + FieldB and store the result in FieldC. I then need to
save the table as a txt file and send to someone. Using FieldC: [FieldA] +
[FieldB] in an update query doesn't apparently let me save the contents of
each FieldC. I know I'm overlooking something that should be pretty simple.
Help! How do i do this?

If you're sending an exported text file, simply base the export on a
Query rather than a table. In a vacant field cell in the query grid
type

C: [A] +

Then use File... Export to export the Query. It is not necessary nor
beneficial to store C redundantly in any table.

John W. Vinson[MVP]
 

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

Top