A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Performing math functions on table entries



 
 
Thread Tools Display Modes
  #1  
Old March 28th, 2007, 02:02 AM posted to microsoft.public.access.tablesdbdesign
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Performing math functions on table entries

Step away from the keyboard! You are trying to "commit spreadsheet".

1. Unlike a spreadsheet cell, you can not do calculations in a table field.
The datasheet view looks like a worksheet, but it is not. Tables store data.
Period.

2. As Access doesn't support table-level triggers, you can't have it
populate another field with data based on another previous field while typing
in data.

3. You could do this using a form HOWEVER storing derived data in a table is
usually a very bad idea. It's better to do the math as needed in a query,
form, or report.

I highly suggest getting some relational database training or reading
"Database Design for Mere Mortals" by Hernandez before proceeding any further
on this database.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"Lost in Microbiology" wrote:

I am setting up a database for lab entries where there are dilutions factors
applied. Is it possible to set up a functioin on the field so it calculates
the end number for me?

For example, I have a number field that will need to be multiplied by 6. So,
can I set up an input mask for a number field that will multiply my entry by
6 and store that in the table?

Field Name Data Type
CAC Number CFU of yeast grown on Chromagar candida

I want to enter a number in the table and for it to be multiplied by 6.

Thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.