473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

DSum basic help

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
1 1891
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rolan | last post by:
I'm using Access 97 and need some assistance in sorting out a proper DSum expression. It relates to a subform (sfrmCost) from which I'm wanting to extract the grand total of any and all data rows...
0
by: Rolan | last post by:
I'm using Access 97 and need some assistance in sorting out a proper DSum expression, or maybe even DCount might be an alternative. I have tried numerous combinations, but with no apparent success....
2
by: Dalan | last post by:
I seemed to be having problems with structuring the use of NZ with a DSum expression. Having tried numerous variations of the expression without success, I'm asking for assistance. First some...
3
by: Mark Reed | last post by:
All, I have never used this function before and am not sure it what I need. Just to clarify, I have a report based on a query which has amoungst other field, wk, parea & packs_req. What I am...
2
by: GD | last post by:
tblFoo FooId Name Number 1 One 1 2 Two 2 3 Three 3 The Following query produces the results I want, but it is not updatable. I need at least the...
1
by: gbb0330 | last post by:
Hi All i am trying to calculate Quantity on hand in a unbound textbox in a form with a subform QonHand=Qreceived - TotalQSold TotalQsold=QsoldOnEbay+QsoldThruOtherChannels here is my...
2
by: emc_cos | last post by:
So I am relatively new to Access so please bare with me... I have been able to create a very functional form that will be utilized for time entry for tasks. The primary form is a record...
6
by: pixie | last post by:
Hi. I'm having problems with the following DSum in my report footer. It gives me #Error when I run the report. I hope someone can help me out as I am at my wits end. What I am trying to do is to...
1
by: danielgoss | last post by:
Hi I have a report that has loads of textboxes that calculate things based on the value on another textbox in the report. I have put a hidden textbox on my report that gets its value from an...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.