473,406 Members | 2,390 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,406 software developers and data experts.

Evaluation in Access

anukagni
Hello Friends,

This question make's me mad for last two weeks..

I want to create an database for my company and in that database i have to track funding details.. like below..

( All are asumption value & fields)

Fund Name : XXY015 Fund Value : $10,000.00
Fund Name : XXY016 Fund Value : $ 05,000.00

Now iam evauating as

Dept - X get's the fund amount of $ 5000.00 from Fund Name : XXY015 in Jan07

Dept -Z get's the fund amount of $1000.00 from Fund Name : XXY016 in Jan07

This is what iam going to enter in one table ..now i need is when i use the Fund Name :XXY015 next time then the Fund Amount should show as $9,5000.00 . as closing balance...

How can i do this in the backend .. please give me an idea..

anukagni
Jan 16 '07 #1
5 1488
MMcCarthy
14,534 Expert Mod 8TB
Hello Friends,

This question make's me mad for last two weeks..

I want to create an database for my company and in that database i have to track funding details.. like below..

( All are asumption value & fields)

Fund Name : XXY015 Fund Value : $10,000.00
Fund Name : XXY016 Fund Value : $ 05,000.00

Now iam evauating as

Dept - X get's the fund amount of $ 5000.00 from Fund Name : XXY015 in Jan07

Dept -Z get's the fund amount of $1000.00 from Fund Name : XXY016 in Jan07

This is what iam going to enter in one table ..now i need is when i use the Fund Name :XXY015 next time then the Fund Amount should show as $9,5000.00 . as closing balance...

How can i do this in the backend .. please give me an idea..

anukagni
tblFunds
FundID (Primary Key, Autonumber)
FundName
FundValue (opening value only)

tblDepts
DeptID (Primary Key, Autonumber)
DeptName

tblFundsPerDept
FundID (Primary Key, Foreign key to FundID Primary Key)
DeptID (Primary Key, Foreign key to DeptID Primary Key)
Amount (Amount of fund assigned to dept)
DateAssigned (Date fund amount assigned to dept)

Check out this tutorial for assistance.

You can then design a form based on the third table to allow you to assign funds per dept. The fund balance should not be stored as it changes all the time and is a calculated value. However, you can display it on the form with a calculated field and set some validation in code that will not allow an unavailable fund balance to be assigned.

Mary
Jan 16 '07 #2
would u able to explain me in detail...


please..

anukagni
Jan 17 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
would u able to explain me in detail...


please..

anukagni
What part would you like me to explain?
Jan 17 '07 #4
What part would you like me to explain?

I have already did what u said & i want to know how this value will be didacted and stored in an table ...

Explain me in that area..

anukagni..
Jan 18 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
I have already did what u said & i want to know how this value will be didacted and stored in an table ...

Explain me in that area..

anukagni..
The balance value wouldn't be stored. It would be calculated each time the form is opened or changed using the something like the following in the control source of the textbox.

Expand|Select|Wrap|Line Numbers
  1. =DLookup("[FundValue]","tblFunds","[FundID]=" & [FundID]) - DSum("[Amount]","tblFundsPerDept","[FundID]=" & [FundID])
  2.  
This will give you the current balance left in the fund.

Mary
Jan 18 '07 #6

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

Similar topics

11
by: Bhushit Joshipura | last post by:
This post contains one question and one proposal. A. May I know why order of evaluation of arguments is not specified in C/C++? I asked a question in comp.lang.c++ for the following...
21
by: dragoncoder | last post by:
Consider the following code. #include <stdio.h> int main() { int i =1; printf("%d ,%d ,%d\n",i,++i,i++); return 0; }
77
by: berns | last post by:
Hi All, A coworker and I have been debating the 'correct' expectation of evaluation for the phrase a = b = c. Two different versions of GCC ended up compiling this as b = c; a = b and the other...
9
by: sturlamolden | last post by:
Python allows the binding behaviour to be defined for descriptors, using the __set__ and __get__ methods. I think it would be a major advantage if this could be generalized to any object, by...
54
by: Rasjid | last post by:
Hello, I have just joined and this is my first post. I have never been able to resolve the issue of order of evaluation in C/C++ and the related issue of precedence of operators, use of...
11
by: Pietro Cerutti | last post by:
Hi group, here I come with a question which is quite simple per se, but for which I can't find an answer. Does the C standard guarantee that inside an expression such as (x && y) "y" is...
3
by: Arun Srinivasan | last post by:
I have a query that has 5 predicates, scanning a table of 400+ million rows and I have built indexes getting help from design advisor and other tools. The cost of that query is really low. But I...
39
by: Boltar | last post by:
Why does C do lazy evaluation for logical boolean operations but not bitwise ones? Ie: the following program prints "1 2" , not "1 1" under gcc main() { int a = 1; int b = 1; 0 && ++a;
32
by: kid joe | last post by:
Hi Can anyone share their experiences regarding which approach (ShareWare vs Evaluation-ware) works best to protect profits and keep customers pleased? Having a ShareWare product that can be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.