469,271 Members | 1,033 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Use of Calculated values in a report

Hello Access gurus,

I am a self-taught Access “developer” and have a ton to learn so please allow me to sound stupid. I am using 2003 on a XP platform.

I manage properties for an organization. At times it is necessary to pay an individual to stay in a house so that it isn’t vacant for an extended period of time. The organization pays the entire utility cost but deducts the individual’s usage cost.

In other words, they receive ‘Pay’-(‘bill1 + bill2 + bill3…’ - ‘basic cost1’ + ‘basic cost2’ + ‘basic cost3…’).
I have a subform where I input each of the monthly basic costs and bills. I sum the basic costs column and the bills column on the footer, and then on the form, I calculate Pay – (sum of bills – sum of basic cost) = remuneration. This is working fine.

My problem is with the ‘monthly payment request report’ I want to print. Since the values I want to print are calculated form values and only exist when the form is open for that particular record, I don’t know how to put them on the report. Is there a way to write those calculated values to a field in the record so that I can produce a report? I’m sure it can be done but need an example to go by. Or, if I am going about this totally wrong, I’m open to a better way.

Thanks in advance,
Apr 11 '09 #1
5 1448
32,171 Expert Mod 16PB
Generally this is done in the underlying query (that the form and reports can be built on). Without knowing the layout of your data better, I can add no more than that basic hint.

This is, however, an important point to remember generally when working with such objects. Arithmetic (especially complicated stuff) is better done in the underlying query where possible.

Welcome to Bytes!
Apr 13 '09 #2
I thought that might be your responce. I've tried to do it in the underling query but am having some problems. The tabel that I am query has bill cost and basic cost for all properties. In most cases there are several record for each property. When I use DSum it totals everything. I want a seperate total for properties a, b, c, etc. Each property has a unique id. How can I set a varable to work with the criterion part of the DSum function?
Apr 14 '09 #3
32,171 Expert Mod 16PB
I still can't help (See comment in earlier post) unless you describe how your data is held, how you're querying it at the moment and what you want to achieve.
Apr 14 '09 #4
Bytes is a terrific resource. I have solved several problems already just by viewing other threads.
Thanks and congratulations for the site.


I do have a question though. I can add to this thread but I can't seem to create a new one. I read the problems with adding post entry, maybe my account needs to be reactivated. How do I do that? What am I doing wrong?
Apr 29 '09 #5
32,171 Expert Mod 16PB
My guess is that you are in the parent folder. Look near the top for a link to Answers.

If this fails, then please follow the instructions found in HELP! My ACCOUNT is DISABLED!.
Apr 29 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by SJH | last post: by
2 posts views Thread by John | last post: by
2 posts views Thread by john | last post: by
3 posts views Thread by kelley.l.turner | last post: by
1 post views Thread by turtle | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.