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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculation in a Text Box



 
 
Thread Tools Display Modes
  #1  
Old October 29th, 2009, 08:30 PM posted to microsoft.public.access.forms
OsmoseTom
external usenet poster
 
Posts: 5
Default Calculation in a Text Box

I need help totaling combo boxes based on criteria entered in other combo
boxes.

I setup my form as follows:

A user can work on 8 different jobs in any given day. For each job their is
a corresponding Hours and Type drop down box. The Hours drop down allows
users to select from .25 to 14 hours. The Type Hours allows users to select
RG, OT, DT, OC and VA. When a job number is entered a hour selection and
type are required.

I want to total the hours at the end of each column in text boxes. One for
each type (RG, OT, DT, OC and VA). I tried several if statements but they do
not work when the same type isn't used each day.

Any help would be greatly appreciated.


  #2  
Old October 29th, 2009, 08:39 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Calculation in a Text Box

Remember that the data is NOT stored in the form. The data is stored in the
underlying table.

To sum up data, sum up the data in the table. A Totals query is one way to
do this.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"OsmoseTom" wrote in message
...
I need help totaling combo boxes based on criteria entered in other combo
boxes.

I setup my form as follows:

A user can work on 8 different jobs in any given day. For each job their
is
a corresponding Hours and Type drop down box. The Hours drop down allows
users to select from .25 to 14 hours. The Type Hours allows users to
select
RG, OT, DT, OC and VA. When a job number is entered a hour selection and
type are required.

I want to total the hours at the end of each column in text boxes. One
for
each type (RG, OT, DT, OC and VA). I tried several if statements but they
do
not work when the same type isn't used each day.

Any help would be greatly appreciated.




  #3  
Old October 29th, 2009, 08:51 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Calculation in a Text Box

What do you have supplying information the the text boxes in the columns and
at the bottom?

--
Build a little, test a little.


"OsmoseTom" wrote:

I need help totaling combo boxes based on criteria entered in other combo
boxes.

I setup my form as follows:

A user can work on 8 different jobs in any given day. For each job their is
a corresponding Hours and Type drop down box. The Hours drop down allows
users to select from .25 to 14 hours. The Type Hours allows users to select
RG, OT, DT, OC and VA. When a job number is entered a hour selection and
type are required.

I want to total the hours at the end of each column in text boxes. One for
each type (RG, OT, DT, OC and VA). I tried several if statements but they do
not work when the same type isn't used each day.

Any help would be greatly appreciated.


 




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 08:02 AM.


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