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

Data calculation in access like in excell

Hello Dear All,

I would like to know if it is possible to make calculations in access like in excell. I thing there are some ways to do that but I dont know how? Your help would be really appreciated.

Example:

I have table with values:

Value
10
15
30
20
10

And I need to insert into the same table the other column with percentage changes of the two values. Example:

Value | Change(%)
10 | 0
15 | 50
30 | 100
20 | -33
10 | -50

The calculations:
For example the second value in Change column:
(15 - 10)/10 = 0,5 or 50 %

Is it possible to do that? I would be very grateful for answers.
Mar 8 '11 #1
1 1432
beacon
579 512MB
You could imitate the action, but I think you'd have to use either a query or VBA code to accomplish it.

My question is, will the data in the table change? If so, my recommendation would be to use a SELECT query. The reason is because data that appears in a SELECT query is a view/snapshot of the data in the table that allows you to add additional columns and manipulate the data without affecting the data in the underlying table.

Go to Query in the Database Window, click New, and choose to create a query in Design View. You should then be prompted to add tables to the query (add the table or tables you need). Once you've added the table(s), you can click and drag the fields you need to the grid. Once you've got all the fields you want on the grid, you can create an expression (similar to Excel's formulas) in one of the open columns.

Hope this helps and good luck,
beacon
Mar 8 '11 #2

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

Similar topics

2
by: ASIF | last post by:
Does anyone klnow of a quick way of exporting data from access to a text doucument, the data needs to be tab seperated, and the data to be exported needs to be selected using parameter queries. I...
0
by: lewang | last post by:
I am trying to get data from Access through a SQL query from Excel via VBA: but i get an error of "Run Time Error '-2147467259 (800040005)': Method 'Open' of object '_Recordset' failed" I have...
9
by: Hi5 | last post by:
Hi, I have designed a databasewhich is now able to store all data from my client's Excel sheet.Now I am looking for a good way to move their data into this Db. If I want to do this myself will...
1
by: gssstuff | last post by:
Hi I have a need to send data from Access to an existing Excel template that I am using for reporting purposes. The nature of the data in the Access data table does not lend itself to a simple...
15
by: Marcus | last post by:
I created a VB.Net 1.1 application that iterates through all the tables in any basic Access 2000 database passed to it and generates the same table structure in a SQL Server Express database. The...
20
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP,...
1
by: Mohsin | last post by:
Hi, any one can help me to save visual Basic Data in Access to link through Data control or ODBC. when i am trying to save vb data in Access after making link through data control it is not saving...
4
by: sharper | last post by:
Hi to all ! I have problem with C# and access databasses! I can't to insert new record in database , ( I mean I made grid view and connect him with a access database and made all things to...
0
by: =?Utf-8?B?QkFUT04=?= | last post by:
I have realy big problem I try lot of things but never success! I need a HELP! Problem is in that I made database in Microsoft access and connect her to C# form and datagridview. and it...
1
by: gudipati | last post by:
hi,i have one problem.actually we can retrieve data from access. what is my requirement is when i retrieve data from access i want to store in text areas. finely,we can store if they r textboxes...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.