473,799 Members | 3,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculating Fields in an ASP Table using VB.Net

Ok, after all the research on datagrids, I've found that they won't really work for what I'm trying to do...I have a table that I need to have three columns as static data (but each row has a different value) and two other columns that have to do calculations, and a summary row/footer at the bottom of the table.

I guess maybe I'm stupid, because even with the help and information I've been given, how to populate each static column with different data in each row - I don't get! So, I've gone back to an ASP Table that I can hard-code the columns with the static data and do the calculations. My question is, does anyone have an easy way to do my calculation columns and footer in the table? TIA

Coleen
---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 20 '05 #1
4 3427
Cor
Hi Coleen

I think you just have to think this over.

In a normal table is a calculation and footer row in my opinion only
something that is put on the page after normal calculations, maybe only some
other design but that is than normal HTML and maybe CSS,

Or am I seeing something wrong?

Cor
Ok, after all the research on datagrids, I've found that they won't really work for what I'm trying to do...I have a table that I need to have three
columns as static data (but each row has a different value) and two other
columns that have to do calculations, and a summary row/footer at the bottom
of the table.
I guess maybe I'm stupid, because even with the help and information I've

been given, how to populate each static column with different data in each
row - I don't get! So, I've gone back to an ASP Table that I can hard-code
the columns with the static data and do the calculations. My question is,
does anyone have an easy way to do my calculation columns and footer in the
table? TIA
Nov 20 '05 #2
Thanks Cor - I need to do calculations in three Columns AND in the footer. I know this probably won't turn out but here is what I need:

Column1 Column2 Column3 Column4 Column5 Column5
Data Data Data Calc Data Calc
in this Data Data Calc Data Calc
Column Data Data Calc Data Calc
is hard Data Data Calc Data Calc
coded Data Data Calc Data Calc
and Data Data Calc Data Calc
different Data Data Calc Data Calc

Totals Sum Sum Sum Sum Sum

I need to do calculations in at least two columns AND a Footer. I think this could be done in a datagrid, but I don't know how to hard code Column1 - This column has different data for each row HARD coded. Ugh! Any suggestions? There's a lot going on in this table, it's all read only (for THIS table) so I was hoping to use a datagird. Thanks for any/all help :-) Coleen

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 20 '05 #3
Cor
Hi Colleen,

You said you did research on the datagrid,

Why are you not building your own datatable I think that will work, it is
not that hard to do
I type it here roughy
\\\
dim dt as new datatabel("Cole en")
dim dc1 as new datacolomn("Col umn1")
dt.columns.add( dc1)
dim dc2 as new datacolomn("Col umn2")
dt.columns.add( dc2)
till 5 than you can fill the table with all you want (but have a look at
datacolumn you can do more)
If you did this you can do to file a field as second item in the third row
dt.rows(2).item ("Column2) =mydata or text
or just as I do
dt.rows(2)(1) = mydata or text
And than
datagrid1.datas ource = dt
etc.
////

I hope this helps?

Cor
Thanks Cor - I need to do calculations in three Columns AND in the footer. I know this probably won't turn out but here is what I need: Column1 Column2 Column3 Column4 Column5 Column5
Data Data Data Calc Data Calc
in this Data Data Calc Data Calc
Column Data Data Calc Data Calc
is hard Data Data Calc Data Calc
coded Data Data Calc Data Calc
and Data Data Calc Data Calc
different Data Data Calc Data Calc

Totals Sum Sum Sum Sum Sum

I need to do calculations in at least two columns AND a Footer. I think this could be done in a datagrid, but I don't know how to hard code
Column1 - This column has different data for each row HARD coded. Ugh! Any
suggestions? There's a lot going on in this table, it's all read only (for
THIS table) so I was hoping to use a datagird. Thanks for any/all help :-)
Coleen

Nov 20 '05 #4
Hi Cor :-

Actually, I did create a complete ASP Table...I just found that I will need to do my calculations all the way down for two columns and still have to create a sum total in the footer. If I do the table, then I have a LOT of code to get each column(0).row(0 ) and so on for everycolumn and row in the table. I like your suggestion, if I understand it correctly, instead of giving the value of the variable for the columns, I give it a text value and hard code it? Thanks - I will try that tommorrow when I get back to my office. Thanks a lot for your help :-

Coleen

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2184
by: JLM | last post by:
I have a table that has fieldA, fieldB, fieldC. I want fieldC=fieldA-fieldB. simple enough. the next record I want to be able to do the same on the new value of fieldC. I can do this with SAP ABAP/4, but have never done this using Access. I'm sure this can be done, but not sure how to go about it. thanks in advance, jlm
1
2380
by: jlm | last post by:
I have a form which feeds table (TblEmpLeave) of Employee Leave Time (time taken off for Administrative, Annual, Sick, Compensation leave). I have EmpID, LeaveDate, LeaveType, LeaveHours fields on this form. Any employee can have multiple entries in the table (key fields are EmpID and LeaveID) for multiple dates (John Doe can take 3 days annual leave, then take 3 days sick leave in any given month. I have a BeginningBalance of hours that...
1
2511
by: Megan | last post by:
quick summary: i'm having problems trying to group fields in a report in order to calculate percentages. to calculate percentages, i'm comparing the results from my grouped fields to the totals. first, let me say that this is a really long post. i wasn't sure how much information/ background to provide, so i thought more was better than less. i tried to delineate certain areas so that it would be easy to peruse my posting and find...
1
4310
by: Tony Williams | last post by:
I have a table with two fields, txtvalue (a number field) and txtmonth ( a date/time field). I want to create a report that shows the difference in value between the value in txtvalue in one value of txtmonth and the value of txtvalue in another value of txtmonth and the percentage increase . For example if I have the value 1000 in 30/03/03 and the value 1100 in 30/03/04 How do I calculate the difference as 100 and the increase as 10%. I...
3
2725
by: luscus | last post by:
Thanks for all the responses on my first question. Unfortunately the answers I was given were too complicated for my small brain , and neophite condition to understand. So if you could talk down to me and write in easier terms I would be very gratefull to all you access wizards! Here is my problem. I have a table with maybe 10 fields, It is used to imput information taken over the phone to solve patient problems in our Spanish...
2
2536
by: kuhni | last post by:
Hi everybody! After searching newsgroups for a couple of hours, I now try asking directly (running the risk of asking again the same question). My problem is to predict when the size of the database (1GB I expect) is over 1GB by calculating the maximal number of data sets (tuple) added: 1. Is the following calculation for estimating the mdb file size in Access 97 correct: 1 integer field = 4 Byte
3
6908
by: JDiamond | last post by:
Hi, I have a table called Hosts. The Hosts table contains the following fields: Each field represents a step in the project. The tech that completes each step initials the respective columns using a combo box within a form. These initials are stored in an engineer table in which the combo
8
4016
by: King | last post by:
Hi I have following MS Acess query Here is the query ID Name Prgm ID Client ID Date Start Time End Time Minutes C4 Trisha TIP DEK0703 7 /7 /2006 10:00:00 AM 12:00:00 PM 120
6
2966
by: Adam1331 | last post by:
I am currently setting up a database for work that will operate as a timesheet. I have set up multiple tables, queries, forms and reports to help this process run smoothly. The issue that has come up deals with calculating our times. An employee would use one form based on one table to punch into a job and the time is recorded using the value and then will punch out of a job on a seperate form based on a seperate table which also uses the ...
49
2551
by: Constantine AI | last post by:
Hi i am trying to calculate two fields 'AcrossGrain' and 'WithGrain' both of which have equations assigned to them for example: Equations: Depth-BBackVoid-CarcT or Height-CarcT*2 I do have a parameter table (parmas) which has all the values assigned to them for example: BBackVoid = 22 CarcT = 18 Default Depth = 300
0
9538
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
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9067
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...
1
7561
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
6803
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
5459
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
4135
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
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
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.