473,698 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to display code calculation results in a table???

15 New Member
Hi guys,

Hope to gather some information and help from all you experts out there.
I have VERY limited experience with Micorosft Access...

I have a form that displays the age of a customer taken from another field, (DOB).

The problem here is, this information is not visible in the table??

I also have ANOTHER field for class Totals, with the same setup...
I would also like to have this information visible in a table so that i can manipulate reports...

ANYWAY help will be greatly appreciated..

RAJ

--------------------------------------------------------------------------------
Mar 30 '07 #1
8 2731
Rabbit
12,516 Recognized Expert Moderator MVP
If they're calculations of fields in the table, there's no need for them to be in the table.

Just create a query that has these calculations and make a report on the query.
Mar 30 '07 #2
NoDBExperience
15 New Member
If they're calculations of fields in the table, there's no need for them to be in the table.

Just create a query that has these calculations and make a report on the query.
Sorry there Rabbit, not so sure what all this means, but i am trying to access that data in order to have it list on other forms/tables and use as a query. But since it isn't in any table, how can i do this??

Example, with the DOB, i would like to sort by age group....
With out the data been in a table, this becomes difficult...
Although it is listed on the form, it just doesn't show up in the coresponding table, which is left blank...

Same problem with another on my class table...
Trying to take the total number of students from a class, and have this information reflected on a report, but where do i pull this information from, once again. the coresponding table is blank?

Your help would be really great...

RAJ
Mar 31 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Total no of students per class would be something like ...
Expand|Select|Wrap|Line Numbers
  1. SELECT Class, Count(Students) As NoOfStudents
  2. FROM tblClass
  3. GROUP BY Class;
  4.  
Apr 1 '07 #4
Rabbit
12,516 Recognized Expert Moderator MVP
Sorry there Rabbit, not so sure what all this means, but i am trying to access that data in order to have it list on other forms/tables and use as a query. But since it isn't in any table, how can i do this??

Example, with the DOB, i would like to sort by age group....
With out the data been in a table, this becomes difficult...
Although it is listed on the form, it just doesn't show up in the coresponding table, which is left blank...

Same problem with another on my class table...
Trying to take the total number of students from a class, and have this information reflected on a report, but where do i pull this information from, once again. the coresponding table is blank?

Your help would be really great...

RAJ
Blank? So you didn't bind the form to the table?
Apr 1 '07 #5
NoDBExperience
15 New Member
Not sure whatthat means by binding forms to tables???
What i do know is that EVERYTHING else on the form is; i guess binded to the table except this data, the age??
DOB, name and so forth are all visible in the table but the clients age???
Although the age of the client is visible on the form, just can't figure that out??
Also have the same for class totals...
The totals are visble on the form, but not in the table??

Once again, your help would be very greatful..

RJ
Apr 3 '07 #6
Rabbit
12,516 Recognized Expert Moderator MVP
Not sure whatthat means by binding forms to tables???
What i do know is that EVERYTHING else on the form is; i guess binded to the table except this data, the age??
DOB, name and so forth are all visible in the table but the clients age???
Although the age of the client is visible on the form, just can't figure that out??
Also have the same for class totals...
The totals are visble on the form, but not in the table??

Once again, your help would be very greatful..

RJ
That's what I meant in the beginning. If you have DOB in your table then you don't need to store age in your table, you just calculate it when you need it.

The same goes for total. If you have all the fields you need to calculate the total stored in the table, then there's no need to store the total. Just calculate it when you need it.
Apr 3 '07 #7
NoDBExperience
15 New Member
Thanks heaps guys, i think i understand it a lot more now...
Still all new to this stuff...

RAJ
Apr 7 '07 #8
Rabbit
12,516 Recognized Expert Moderator MVP
Not a problem, good luck.
Apr 7 '07 #9

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

Similar topics

20
3888
by: Xenophobe | last post by:
I have successfully converted the ASP code included in the following article to PHP: http://www.4guysfromrolla.com/webtech/040100-1.shtml As described the high and low latitudes and longitudes are pre-calculated and passed to the query. SELECT * FROM Locations
2
1967
by: erica | last post by:
Hi, I am currently writing PHP code for some polling software. When someone votes, it stores their IP address in the database. From then on, they cannot vote in that particular poll, they only view the results. There are several polls in the database, and there is a field called "status". When it is 0, the poll is "active" and can be voted upon. When it is 1, it is archived and one can only view the results. But, there seems to be...
1
1484
by: Herbert Chan | last post by:
Hello, I have a table that stores information about some yearly forecast output, and a form that shows the records. Recently, my boss wants to show the data on a quarterly basis. Although the table doesn't actually store the quarterly forecast, I have an algorithm that can generate such a forecast. The problem is: how to do the generation on the fly when I use the form to
143
8031
by: suri | last post by:
Hello I downloaded glibc and tried looking for the code that implements the sine function i couldnt find the file. i went to the math directory and found math.h.. i guess that needs to be included for the sine function. but which .c file implements the sine/cosine and other trig fns thanks
1
1817
by: bigmaddaz | last post by:
Ok im designing an application for working out compount interest. The user starts the page, 3 prompts appear, one asking for money invested, next asking for rate of interest, and last one asking for length of time money invested. All what now displays on the page is simple a calculate button. When the user clicks this calculate button, a new window opens, showing in table form what the user inputted and the actual calculation. I have all...
1
2278
by: erick-flores | last post by:
Hello all I have a linked table using ODBC. When I tried to do Count() and Sum() for this linked table (onw of the field in the table is name "total") the form takes forever to gives me the results, like 4 minutes. I am putting a textbox in the footer of my form to get this results. The table has around 1300 records. Is there a better way to get quicker results? I know I can copy the linked table to my local computer and then the
9
2633
by: wparrott | last post by:
I have a table called tblPayScales. It has 5 fields: numRecID - record ID txtCLASSCODE - a 1 or 2 letter text value (A, B, C, BD, L, LT, etc.) numPAYSTEP - a number value 0-49 numSALARY - a number value such as 36,246.00 numNEWSALARY - a number value derived from a user-defined percentage The table contains records for each CLASSCODE/PAYSTEP. Although there are 50 pay steps some have a value of 0 for numSALARY(no employee at that pay...
4
2380
by: murrayatuptowngallery | last post by:
I started a JS project (my first) a year or two ago, got distracted & am just now getting back to it. By luck I had somehow found a way to collect data with a form, perform calculations with JavaScript and display the form and calculated results on the same screen. Now I can't figure out how to do that again. The only methods of reporting the calculation results seem to display a completely new screen/window.
11
4277
by: mrking | last post by:
Hi, First time in the Java section here. I have an HTML form and a PHP script to do a simple calculation but it has to take me to a different page for the results. The calculator is really simple. The user enters just height and width and the calculator applies the formula, then display the answer to the nearest 10th. <?
0
8673
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
8601
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
9156
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
8892
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,...
0
7716
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
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();...
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
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.