Results 1 to 7 of 7
  1. #1
    msmit8 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    14

    Expression Help Needed

    I have a form that is updated once a month for40 users. Each user is a separate entry on the form. I created a text box that Iwould like to sum the total of entries for 39 different (A4, AN, AX, CB, etc.etc. etc.) entry text boxes. Some of the 39 text boxes will not always befilled in. Any help guiding me with the correct expression to use would begreatly appreciated.



    This seems like it should be easy, but I can’tseem to figure it out.

    Thanks!
    Matt


  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    I dont think you have 39 text boxes, but rather 39 records on the data grid. right?
    I think you want a query to sum each Code. (A4, AN, etc)
    right?

  3. #3
    msmit8 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    14
    Yes, there are 39 records on the form (I think that's the same things as the data grid).

    I don't think I want a query...please correct me if I'm wrong.

    I'll try and explain what I'm doing a little better. Each of the 40 users is a separate entry on the form. I want each entry on the form to sum the total of the 39 records on the form for each user that I'm entering data for.

    Thanks, Matt

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    yes, query. Turn on summation totals.

  5. #5
    msmit8 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    14
    Still not sure on using the query. If this is what I need to do, what field do I need on the query to make this work?

    I've attached a screenshot to give you a visual. The screen shot is of the form I'm using. Each field is filled out, each month for the 40 users. The total should sum the A4, AN, AX, etc, etc, fields for each user.
    Click image for larger version. 

Name:	database_screenshot.PNG 
Views:	8 
Size:	18.1 KB 
ID:	18356

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    This does not look like normalized data structure. If you have a field for each user, then you are making life difficult because summing these 40 fields will be a very long expression.

    Nz(A4) + Nz(AN) + .... +Nz(UB)

    Usually calculated data should not be saved into table. Calculate when needed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    msmit8 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    14
    That worked. Thank you very much! Mystery solved.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help needed : Library catalogue in access format is needed
    By dealers in forum Sample Databases
    Replies: 3
    Last Post: 01-16-2014, 02:03 PM
  2. Replies: 3
    Last Post: 10-20-2013, 12:05 PM
  3. Replies: 2
    Last Post: 11-20-2012, 03:21 AM
  4. Replies: 4
    Last Post: 10-26-2012, 12:49 AM
  5. Possible expression equation needed?
    By WayneSteenkamp in forum Access
    Replies: 6
    Last Post: 02-23-2012, 12:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums