A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

calculated fields on a report



 
 
Thread Tools Display Modes
  #1  
Old July 30th, 2007, 01:35 PM posted to microsoft.public.access.reports
pigsy101
external usenet poster
 
Posts: 10
Default calculated fields on a report

i have a database which measures the level of toner cartridges we
have
in stock.

A report shows the printer, cartridge, opening stock, ordered,
allocated, total in stock, reorder level and a calculated field to
give =[Total In Stock]-[reorderlevel].


This all works fine.


I want to display a check box that is true if the number calculated
field result is 1 or less and false if it is 2 or more. I want the
source of the check box to be the calculated field


The calculated field name is [balance] and the check box is [re-
order?]


I know this can be done with code but i can't work it out.


thanks in advance

  #2  
Old July 30th, 2007, 02:19 PM posted to microsoft.public.access.reports
Baz
external usenet poster
 
Posts: 380
Default calculated fields on a report

You don't need code. Just set the check box's control source to this:

=([Total In Stock]-[reorderlevel]2)

"pigsy101" wrote in message
oups.com...
i have a database which measures the level of toner cartridges we
have
in stock.

A report shows the printer, cartridge, opening stock, ordered,
allocated, total in stock, reorder level and a calculated field to
give =[Total In Stock]-[reorderlevel].


This all works fine.


I want to display a check box that is true if the number calculated
field result is 1 or less and false if it is 2 or more. I want the
source of the check box to be the calculated field


The calculated field name is [balance] and the check box is [re-
order?]


I know this can be done with code but i can't work it out.


thanks in advance



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.