I'm designing a Access database and I need to do 2 calculations on a form.
The first is to calculate the number of tablets taken from the following 2 fields Dispensed and Returned, this will allow the number to be entered into field Number taken
Placed the following in control source
=Int(Sum([Dispensed]-[Returned]))
This works but it won't do the calculations on the fly!!!! You need to go onto the next record then it gives figure.
The second calculation needs to work out a compliance figure, with the following fields:
Number taken, Number to be taken and this needs to be a percentage so it needs multiplying by 100.
Placed the following in control source
=Int(Sum([Number taken]\[Number to be taken])*100)
This just doesn't do anything.
Anybody any good with Access?? Help is as unhelpful as help normally is and I can't find any exampls on the web. Is it possible to have 2 calculations on a form?
I've got no ideas how to get this to work so any help is much appreciated.
thanks
The first is to calculate the number of tablets taken from the following 2 fields Dispensed and Returned, this will allow the number to be entered into field Number taken
Placed the following in control source
=Int(Sum([Dispensed]-[Returned]))
This works but it won't do the calculations on the fly!!!! You need to go onto the next record then it gives figure.
The second calculation needs to work out a compliance figure, with the following fields:
Number taken, Number to be taken and this needs to be a percentage so it needs multiplying by 100.
Placed the following in control source
=Int(Sum([Number taken]\[Number to be taken])*100)
This just doesn't do anything.
Anybody any good with Access?? Help is as unhelpful as help normally is and I can't find any exampls on the web. Is it possible to have 2 calculations on a form?
I've got no ideas how to get this to work so any help is much appreciated.
thanks
This post has been edited by stidyup: 16 August 2005 - 06:31 AM

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Back to top








