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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculating an age that will never change Access 2007



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2007, 08:23 PM posted to microsoft.public.access.gettingstarted
ccinseward
external usenet poster
 
Posts: 3
Default Calculating an age that will never change Access 2007

I need to calculate ages based on how old they were when they entered a
program and how old they were when they completed the program. these ages
don't need to be updated just calculated once and for all.

Also I don't know how/where to store the calculation for this

I was a little familiar with access 2003 and struggling with 2007.....
  #2  
Old May 15th, 2007, 09:26 PM posted to microsoft.public.access.gettingstarted
Klatuu
external usenet poster
 
Posts: 7,074
Default Calculating an age that will never change Access 2007

First, it usually is not necessary and, in fact, not correct to store
calculated fields.
In this case, since the value will never change once calculated, you could
do it either way and IMHO not really violate any normalization rules. At
least you could get a dispensation from the DBP*

If you want to store it a field in your table, create a bound control for
the age. Then in the After Update event of the control where the date they
entered the program, perform the calculation and put it in the control.

If you want to be a database fundamentalist, make the control source of an
unbound control show the results of the calculation.


*dbp - database pope
--
Dave Hargis, Microsoft Access MVP


"ccinseward" wrote:

I need to calculate ages based on how old they were when they entered a
program and how old they were when they completed the program. these ages
don't need to be updated just calculated once and for all.

Also I don't know how/where to store the calculation for this

I was a little familiar with access 2003 and struggling with 2007.....

  #3  
Old May 16th, 2007, 04:26 AM posted to microsoft.public.access.gettingstarted
B. Edwards
external usenet poster
 
Posts: 24
Default Calculating an age that will never change Access 2007

Why not just collect three fields: BirthDate, EnterDate, CompletedDate.
Calculate the age on entry and completioin when you need it.


"ccinseward" wrote in message
...
I need to calculate ages based on how old they were when they entered a
program and how old they were when they completed the program. these ages
don't need to be updated just calculated once and for all.

Also I don't know how/where to store the calculation for this

I was a little familiar with access 2003 and struggling with 2007.....



 




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 06:34 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.