Share via

multiplication in access

Anonymous
2012-11-05T11:36:46+00:00

How can define one field of database by multiplication of two other fields?

Thanks

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-11-05T12:39:17+00:00

Create a query like normal. In an empty column in the grid, put something like [Field1] * [Field2] (replace Field1 and Field2 with the actual field names).

Assuming you want to give the calculated field a meaningful name, put that name in front, followed by a colon, like Product: [Field1] * [Field2]

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2012-11-05T11:42:31+00:00

While I believe it is possible in Access 2007, there's no logical reason why you'd need to do this.

As fellow Access MVP John Vinson likes to say "Storing calculated data generally accomplishes only three things: it wastes disk space, it wastes time (a disk fetch is much slower than almost any reasonable calculation), and it risks data validity, since once it's stored in a table either the Total or one of the fields that goes into the total may be changed, making the value WRONG."

Instead, create a query with a calculated field that multiplies the two values together, and use the query wherever you would have used the table.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2012-11-05T12:20:03+00:00

    Thanks,

    How can I define a query with calculated field?

    Was this answer helpful?

    0 comments No comments