473,603 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use of Calculated values in a report

5 New Member
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 1785
NeoPa
32,566 Recognized Expert Moderator MVP
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 New Member
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,566 Recognized Expert Moderator MVP
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 New Member
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,566 Recognized Expert Moderator MVP
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
2902
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 calcuated field. Prior to submission of the information, I would like the user to know what the calculated field be (based on the information input in text boxes) before submission of the form. Is there any way to display the calculated value...
1
2950
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 hold values that were calcuated using a form. I have looked at the code for all the text boxes on the assocatied forms and have yet to figure out how this was done. There were two values set up this way, one still works and the other one...
1
2480
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: txtGreen (Percent of items on schedule) - Text Box: txtYellow (Percent of items slightly off schedule)
2
5926
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 groups: those that are Supervisors (Sergeant, Lieutenant) and those that are Not Supervisors (Officers). Is there a way I can create a calculated field in a query that does something like this ...
2
3979
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 blank fields, so each section of the report is the same size, my field is set to can grow/shrink, but I think my inclusion in the code for the calculated box of all 15 outcomes (I have no choice) is what's causing each calculated box to be the...
2
2065
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 SumOfAmount that are in this group. How do I make a calculated field that does this? Thanks in advance, john
3
4737
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 this calculated field, no value is posted. How/where do I get my calculated values to also show up in the tables and reports? Thanks, Kelley
1
1584
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 multiple unit costs that i need to get an avg, min and max. I would like to sum these avg, min and max at the botttom of the report. Part Unit Cost abc 3
94
6875
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, Grade.Midpoint, Grade.Maximum, Job.EEOCategoryCode, EEOCategory.Desc, Job.EEOSubCategoryCode, EEOSubCategory.Desc FROM Grade RIGHT JOIN (EEOSubCategory RIGHT JOIN (EEOCategory RIGHT JOIN Job ON EEOCategory.Code = Job.EEOCategoryCode) ON...
0
7996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7928
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8415
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8060
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3903
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.