By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,263 Members | 2,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,263 IT Pros & Developers. It's quick & easy.

DSum basic help

P: n/a
Is there a web site that can ofer some help. The quotation marks are posing
an issue as well as other items for this function. I have some books but
they are not consistent in their use of the code lingo. Thank you for any
help. Presently I have tables and forms to gather employee info. I use the
subform to gather status of absence, text field. What I want to do is
calculate the vacation hours and subtract them from the total alocation of
vacation alloted per year. I presently have my subform set up to input the
staus condition, hours off and then to segregate the vacation hpurs I added
a second field of hours of vacation to Sum the Vacation hours separate from
the other hours of absence that are not related to vacation. I can set up a
query with a parameter to extract the vacation hours only which is simple
enough but how can I erase the second hours column and replace it with DSum
function to tidy up the subform so data entry personnel only see one hours
filed on the form. Presently the form runs off tables. Should I rebuild the
form and run it off a query with the vacation parameter built in to the
field.

All help is welcome.

Marc Aube
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
OK,
1. The domain function DSum, (like DCount, DAvg, etc.) syntax is enclose
each required element with double quotes and separate them commas -
DSum("[thing I want to total]","[where the records are]","[condition(s) that
I want to filter records]")

2. You really don't want to store calculated values. Use an unbound control
on your subform to subtract the hours data entered from the allocated leave
time. Recalculate that for any form/report where you need to see the hours
remaining.
-Ed
"Marc Aube" <ma******@cogeco.ca> wrote in message
news:9o***************@read2.cgocable.net...
Is there a web site that can ofer some help. The quotation marks are
posing an issue as well as other items for this function. I have some
books but they are not consistent in their use of the code lingo. Thank
you for any help. Presently I have tables and forms to gather employee
info. I use the subform to gather status of absence, text field. What I
want to do is calculate the vacation hours and subtract them from the
total alocation of vacation alloted per year. I presently have my subform
set up to input the staus condition, hours off and then to segregate the
vacation hpurs I added a second field of hours of vacation to Sum the
Vacation hours separate from the other hours of absence that are not
related to vacation. I can set up a query with a parameter to extract the
vacation hours only which is simple enough but how can I erase the second
hours column and replace it with DSum function to tidy up the subform so
data entry personnel only see one hours filed on the form. Presently the
form runs off tables. Should I rebuild the form and run it off a query
with the vacation parameter built in to the field.

All help is welcome.

Marc Aube

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.