473,480 Members | 4,841 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

add function in access

Hello,
I have created 4 rows rowA, rowB, roC, ToatlRow. Rows A,B,C has a
numeric value. I would like to setup a LostFocus on rowA,B,C so that
TotolRow would automatically display a sum of the 3 rows. Is it
possible? and please show sample code if VB or Macros is require. I
tried creating Expression but did not have any luck.

Thanks
Nov 13 '05 #1
2 1613
Pisa Phothisene wrote:
Hello,
I have created 4 rows rowA, rowB, roC, ToatlRow. Rows A,B,C has a
numeric value. I would like to setup a LostFocus on rowA,B,C so that
TotolRow would automatically display a sum of the 3 rows. Is it
possible? and please show sample code if VB or Macros is require. I
tried creating Expression but did not have any luck.

Thanks


Let's assume you have columns in rowA, B, and C. One of the fields is
called Num1. If you have a field in the TotRow, the control source
could be
=Sum([Num1])
Do that for the rest.

If your rows/columns have different fields, you could do
=Sum(RowANum + RowBNum + RowBNum)
Nov 13 '05 #2
THANK! That worked like a charmed....
Salad <oi*@vinegar.com> wrote in message news:<MX*****************@newsread1.news.pas.earth link.net>...
Pisa Phothisene wrote:
Hello,
I have created 4 rows rowA, rowB, roC, ToatlRow. Rows A,B,C has a
numeric value. I would like to setup a LostFocus on rowA,B,C so that
TotolRow would automatically display a sum of the 3 rows. Is it
possible? and please show sample code if VB or Macros is require. I
tried creating Expression but did not have any luck.

Thanks


Let's assume you have columns in rowA, B, and C. One of the fields is
called Num1. If you have a field in the TotRow, the control source
could be
=Sum([Num1])
Do that for the rest.

If your rows/columns have different fields, you could do
=Sum(RowANum + RowBNum + RowBNum)

Nov 13 '05 #3

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

Similar topics

10
7272
by: Martin Vorbrodt | last post by:
Example code in one of my books intrigues me: class B { public: B* Clone() const { B* p = DoClone(); assert(typeid(*p) == typeid(*this)); return p; }
7
781
by: Alex | last post by:
Hi all, I've found a module that I think will help me combine fields properly, but I'm unsure how to add or use it with Access 2000. Below is the module I'd like to add: ...
6
4387
by: Bill Rubin | last post by:
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the...
11
6596
by: Yelena Varshal via AccessMonster.com | last post by:
Hello, I have a problem with one of msaccess.exe API calls that work on my desctop but does not work on the laptop from within MS ACCESS. There is a lot of differences between 2 computers...
3
1850
by: william | last post by:
My situation is here: an array of two dimension can only be defined locally within a function(because the caller don't know the exact size ). Then the question is: how should the caller access...
9
3259
by: CryptiqueGuy | last post by:
Consider the variadic function with the following prototype: int foo(int num,...); Here 'num' specifies the number of arguments, and assume that all the arguments that should be passed to this...
12
2993
by: Bryan Parkoff | last post by:
I write my large project in C++ source code. My C++ source code contains approximate four thousand small functions. Most of them are inline. I define variables and functions in the global scope....
1
4613
by: seanmatthewwalsh | last post by:
Hi I have a website that uses an Access 2003 database. I have controls on my pages that are bound to SqlDataSources that pull data from this database. In a couple of them, I need to use the...
2
2410
by: Immortal Nephi | last post by:
I design a class for general purpose. I do not allow a client to read or modify interface and implemention. I allow them to write a new non- member function outside of class' interface and...
7
16241
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am using this code to get groups for a user and getting a error (5) on the GetAuthorizationGroups() function . There are two domains. This function works on the local domain but does not work...
0
7040
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
7080
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...
1
6736
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
5331
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,...
1
4772
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...
0
2994
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...
0
2980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1299
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 ...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.