Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Posts
    41

    Unanswered: Calculating Totals

    Hello,
    This data is imported from another system. Need to add certain types of pay, so in this case add their Normal pay and subtract any pay Docks. Later, I would need to add up the other columns as benefits. Challenging part is pay types are scattered among different columns. Not sure if I should attempt to build new tables, or just try to add the fields as they are? Any advice is appreciated!
    Click image for larger version. 

Name:	example.jpg 
Views:	3 
Size:	113.3 KB 
ID:	17164

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    In Query Just tot:AMT1+AMT2+AMT3
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Dec 2004
    Posts
    41
    The data is not standard in each column. AMT1 will contain NML (normal) pay for one employee, but the next employee's NML pay could be in AMT2. Not sure if I should move the data to new columns, construct IF statements, or if there's an easier way? Thanks.

  4. #4
    Join Date
    Dec 2004
    Posts
    41
    I thought I might try running update queries from VB to move the data to new columns, so "NML" pay would go to a "NML" column, however, I cannot get the statement correct in VB. Any suggestions? See attached. Thanks!
    Click image for larger version. 

Name:	error.jpg 
Views:	2 
Size:	69.2 KB 
ID:	17167

Posting Permissions

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