total field
Results 1 to 6 of 6

Thread: total field
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Feb 2003
    Posts
    392
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default total field

    Access 2013
    I have a form (F_WorkingHoursSub) with 3 fields (Workers, Contractors and Total)

    Sometimes I have the hours for Workers and Contractors, and other times I only have the Total hours.

    I would like the total field to show Workers + Contractors if this data is entered. But... If I only have the total, I would like to be able to enter the total in the total field and show the other two fields blank.

    Any suggestions??? My brain is already melted

  2. #2
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,086
    Post Thanks / Like
    Mentioned
    52 Post(s)
    Tagged
    11 Thread(s)

    Default Re: total field

    Here is one approach to consider taking:
    1. Import all three fields (if it imports blanks/nothing for certain fields, that is fine). Maybe call the "Total" one here "Combined".
    2. Create a calculated Total field on that adds up all three fields from step 1.
    3. If you are creating any Reports off of this data, you can hide/not show the "Combined" field, if you like.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  3. #3
    Board Regular
    Join Date
    Feb 2003
    Posts
    392
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: total field

    Quote Originally Posted by Joe4 View Post
    Here is one approach to consider taking:
    1. Import all three fields (if it imports blanks/nothing for certain fields, that is fine). Maybe call the "Total" one here "Combined".
    2. Create a calculated Total field on that adds up all three fields from step 1.
    3. If you are creating any Reports off of this data, you can hide/not show the "Combined" field, if you like.
    Thank you for trying but If I add all three, it would over estimate the workers.

    The data I enter comes in two ways;
    I have Workers and contractors or I have the total (not broken down)
    I need to be able to enter these according to the data I receive.

    If I have the workers and contractors, I want it to sum for me in the Total field.
    If I have the total only, I want to show this in the total field. the other two fields will be blank.

    sorr if this was not clear

  4. #4
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,086
    Post Thanks / Like
    Mentioned
    52 Post(s)
    Tagged
    11 Thread(s)

    Default Re: total field

    Yes, I understand. I do not see how that would over estimate the workers.
    Let's look at a simple example:

    I have Workers and contractors or I have the total (not broken down)
    I am going to call the single total "Combined" for this example.
    So if I understand you correctly, the incoming data will look one of two ways (and I am showing two records to display that):
    Code:
    Workers          Contractors           Combined
       50                 20
       30                 45
                                               85
                                               77
    So, then if we add a Total calculation that sums all three fields for each row, we would get the following:
    Code:
    Workers          Contractors           Combined           TOTAL
       50                 20                                   70
       30                 45                                   75
                                               85              85
                                               77              77
    So how would that be an over estimation?

    As I mentioned, you can "hide" the "Combined" field on any reporting, if you like, so the results would look like this:
    Code:
    Workers          Contractors               TOTAL
       50                 20                     70
       30                 45                     75
                                                 85
                                                 77
    That seems to be what you want, right?
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  5. #5
    Board Regular
    Join Date
    Feb 2003
    Posts
    392
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: total field

    Quote Originally Posted by Joe4 View Post
    Yes, I understand. I do not see how that would over estimate the workers.
    Let's look at a simple example:


    I am going to call the single total "Combined" for this example.
    So if I understand you correctly, the incoming data will look one of two ways (and I am showing two records to display that):
    Code:
    Workers          Contractors           Combined
       50                 20
       30                 45
                                               85
                                               77
    So, then if we add a Total calculation that sums all three fields for each row, we would get the following:
    Code:
    Workers          Contractors           Combined           TOTAL
       50                 20                                   70
       30                 45                                   75
                                               85              85
                                               77              77
    So how would that be an over estimation?

    As I mentioned, you can "hide" the "Combined" field on any reporting, if you like, so the results would look like this:
    Code:
    Workers          Contractors               TOTAL
       50                 20                     70
       30                 45                     75
                                                 85
                                                 77
    That seems to be what you want, right?


    You are so right. it is easier when the data is seen. Thank you for taking time to show me.

  6. #6
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,086
    Post Thanks / Like
    Mentioned
    52 Post(s)
    Tagged
    11 Thread(s)

    Default Re: total field

    You are welcome.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •