473,396 Members | 1,707 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.

This is simple in excel....not in access....

1
I am working in access on a program which requires me to multiply all the values in a field by each other. This is easy to replicate in excel, but I can't figure out how to do this in access.

Here is how I would do it in excel to show u what I mean using columns A and B, the equation is simply B2=A2, then B3=B2*A3, B4=B3*A4, and copying this sequence down the column. It's really simple, but what do i do in Access to achieve the same result?

A B
Account multiplier Account total
1.01 1.01
1.0109 1.021009
1.0003 1.021315303
1.0024 1.023766459
0.9961 1.01977377
0.995 1.014674901
0.995 1.009601527
0.995 1.004553519
1.01 1.014599054
1.0098 1.024542125
1.0098 1.034582638
1.0098 1.044721548
1.0098 1.054959819
1.0098 1.065298425
1.01 1.075951409
1.0056 1.081976737
0.9949 1.076458656
0.995 1.071076363
1.0309 1.104172622
0.996 1.099755932
0.9975 1.097006542
1.01 1.107976607
1.0233 1.133792462
0.99912 1.132794725
1.0022 1.135286873
0.9965 1.131313369
1.02 1.153939637
1.005 1.159709335
1.0075 1.168407155
0.9956 1.163266163
1.01 1.174898825
0.9975 1.171961578
Feb 23 '06 #1
1 1792
PEB
1,418 Expert 1GB
I am working in access on a program which requires me to multiply all the values in a field by each other. This is easy to replicate in excel, but I can't figure out how to do this in access.

Here is how I would do it in excel to show u what I mean using columns A and B, the equation is simply B2=A2, then B3=B2*A3, B4=B3*A4, and copying this sequence down the column. It's really simple, but what do i do in Access to achieve the same result?

A B
Account multiplier Account total
1.01 1.01
1.0109 1.021009
1.0003 1.021315303
1.0024 1.023766459
0.9961 1.01977377
0.995 1.014674901
0.995 1.009601527
0.995 1.004553519
1.01 1.014599054
1.0098 1.024542125
1.0098 1.034582638
1.0098 1.044721548
1.0098 1.054959819
1.0098 1.065298425
1.01 1.075951409
1.0056 1.081976737
0.9949 1.076458656
0.995 1.071076363
1.0309 1.104172622
0.996 1.099755932
0.9975 1.097006542
1.01 1.107976607
1.0233 1.133792462
0.99912 1.132794725
1.0022 1.135286873
0.9965 1.131313369
1.02 1.153939637
1.005 1.159709335
1.0075 1.168407155
0.9956 1.163266163
1.01 1.174898825
0.9975 1.171961578
Hi my frien,

For me the best is to declare a global variable in VB module! So You will save the last value of B in this variable and you can use it on the next record... :)

Also You need to do a function to set this variable and to read it from your query!

NB! When you do your query append the results in a table, because the values of the query will be recalculated and the result won't be good!

But when tha data is introduced in a table, it's calculated and there is no problem! :)

Have a nice luck!

:)
Sep 9 '06 #2

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

Similar topics

3
by: Fabrice Cavarretta | last post by:
I am using a specialized database software (for bibliography: EndNote) that does export in XML. I would like to be able to read that into a simple software, like Excel or Access, in order to do...
4
by: Jane | last post by:
I got the web application to open up the excel. It works fine on my development box. But when i moved it to the production server, I cannot get the Excel spreadsheet to open. I get...
3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
by: Kathleen Turner | last post by:
I have an Excel file that has list of serial numbers followed by a 4 digit code. I have an Access database that has the serial numbers but the field for the 4 digit code is either blank, has the 4...
8
by: Nick M | last post by:
Hello All, Excellent info here Thanks! I am very new to using access in general and I am on a learning curve. I'm trying to import an excel workbook (with worksheets) into an access db via a...
7
by: Brave | last post by:
I am hoping for a code example of how to do this, and hopefully it will help me to see an easy way to code what seems to be a huge monster. I need to create a form that has two pulldown menues...
0
by: JFKJr | last post by:
I have an excel file, which has columns C and D grouped together, I am trying to delete blank columns and rows from the excel file, ungroup the columns and import the file to MS Access using Access...
7
by: kpresidente | last post by:
Hello all, I'm trying to transfer the value of a control on an Access form to an Excel worksheet using VBA. The Access form is a single form with all the controls disabled, so that data is "read...
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
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...
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...
0
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...
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.