473,396 Members | 1,833 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,396 software developers and data experts.

Use of Calculated values in a report

5
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,
Ed
Apr 11 '09 #1
5 1759
NeoPa
32,556 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
royals
5
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
NeoPa
32,556 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
royals
5
Bytes is a terrific resource. I have solved several problems already just by viewing other threads.
Thanks and congratulations for the site.

Ed

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
NeoPa
32,556 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

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

Similar topics

3
by: Jack | last post by:
Hi, I have a asp input form of a financial report. Here most of the fields are text boxes where the user need to input the values corresponding to an item. However, there are few items which are...
1
by: SJH | last post by:
I have been given an older database and asked to make upgrades and what not. One interesting thing I have come across with the database is that it was at one time set up so one of the tables would...
1
by: shobhit_shanker | last post by:
Here are the relevant "givens" to my problem... Form: frmLaunchRpt - Text Box: txtAsOfDate - Check Box: chkLogEval - Command Button: cmdLaunchRpt Report: rptEvaluation - Text Box:...
2
by: John | last post by:
I am using Access 2000. One table in my database has a field called RankName. Values inlcude: Officer, Sergeant, Lieutenant. I need create a report that groups these three RankNames into two...
2
by: Olveres | last post by:
Hi, I have managed to work out how to add new lines into a calculated text box. However in this text box some of the outcome fields are empty however when previewing the report it includes the...
2
by: john | last post by:
I have a report based on query that has output fields: Category1 Category2 Category3 SumOfAmount The report has a group band on category 1. Within this group I would like to sum the values of...
3
by: kelley.l.turner | last post by:
Hi all, I am very new to MS Access so please bear with me! I have created a simple calculated field in my data entry form, yet when I view my data table or try to generate a report based on...
1
by: turtle | last post by:
I understand that access can not sum a calculated field but am having trouble figuring out the work around. I have a report that averages the cost of each part number. Each part number will have...
94
by: mlcampeau | last post by:
I have a report (JobVacanciesOnly) that has a subreport (JobVacanciesOnlySR) that are based on two separate queries. MY - JobVacancyJobs SELECT Job.Code, Job.Title, Job.Grade, Grade.Minimum,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.