dbTalk Databases Forums  

Access 2000 fields question

comp.database.ms-access comp.database.ms-access


Discuss Access 2000 fields question in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rocky
 
Posts: n/a

Default Access 2000 fields question - 02-07-2004 , 06:26 PM






In a volunteer database at the hospital I have two fields, the first
one being hours worked last year and the second one being total hours
worked for that volunteer. Is there a way to change the first field
to the hours worked for each year as we change years and have it
change the second field by just adding those hours to the number that
is already in the field?
I have approx. 200 volunteers and it would save me from having to
change both fields.
Thanks for any info.
Rocky

Reply With Quote
  #2  
Old   
Kara Hooper
 
Posts: n/a

Default Re: Access 2000 fields question - 02-16-2004 , 02:48 PM






Rocky,
You could have a button that you could push every year or set the code
to check the date anytime the database is opened.
You will need an if statement similar to the following:
If Date = January 1 Then
totalhrs = totalhrs + hrsworked
hrsworked=0
End If
Hope that helps.
Kara

www.klh-tech.com
KLH Technology Solutions

Rocky <rockfish (AT) home (DOT) ca> wrote

Quote:
In a volunteer database at the hospital I have two fields, the first
one being hours worked last year and the second one being total hours
worked for that volunteer. Is there a way to change the first field
to the hours worked for each year as we change years and have it
change the second field by just adding those hours to the number that
is already in the field?
I have approx. 200 volunteers and it would save me from having to
change both fields.
Thanks for any info.
Rocky

Reply With Quote
  #3  
Old   
Rocky
 
Posts: n/a

Default Re: Access 2000 fields question - 02-16-2004 , 07:36 PM



Kara the numbers for the past year are added a month or so after the
end of the year after they are added up from cards that are kept by
each volunteer. When that number is put in the field it replaces the
number from the year before. That is when I need it to be added to
the number of total hours in the next field. Can that be done?
Rocky

On 16 Feb 2004 12:48:14 -0800, karahooper (AT) hotmail (DOT) com (Kara Hooper)
wrote:

Quote:
Rocky,
You could have a button that you could push every year or set the code
to check the date anytime the database is opened.
You will need an if statement similar to the following:
If Date = January 1 Then
totalhrs = totalhrs + hrsworked
hrsworked=0
End If
Hope that helps.
Kara

www.klh-tech.com
KLH Technology Solutions

Rocky <rockfish (AT) home (DOT) ca> wrote

In a volunteer database at the hospital I have two fields, the first
one being hours worked last year and the second one being total hours
worked for that volunteer. Is there a way to change the first field
to the hours worked for each year as we change years and have it
change the second field by just adding those hours to the number that
is already in the field?
I have approx. 200 volunteers and it would save me from having to
change both fields.
Thanks for any info.
Rocky


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.