Results 1 to 3 of 3
  1. #1
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61

    Counting Columns in a Query

    I hope someone can help; I've had a look to see if I can find a solution in a previous post but son't think it's there.



    I have created a query; in that query there are a number of columns; I want to calculate the total of 6 of those columns and place the total in the 7th column called "Total Payment Charges", I have shown the first two columns below:

    Click image for larger version. 

Name:	Query1.JPG 
Views:	4 
Size:	30.0 KB 
ID:	8211


    I have tried the following formula:

    Total Payment Charges: [Brks Deductions]+[Brks Deductions 1]+[Brks Deductions 2]+[Brks Deductions 3]+[Brks Deductions 4]+[Brks Deductions 5]

    ...but when I run the query the result I get looks like this:

    Click image for larger version. 

Name:	Query2.JPG 
Views:	2 
Size:	10.8 KB 
ID:	8212
    I wonder if the £0.00 values in some columns are causing the issue or, if not, what could be the problem; any help would be appreciated please ?

    Thanks

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It looks like the field values are being concatenated. Have you tried running the query with the Format() function removed? Note that it doesn't hurt to have additional columns that are unformated if you need the formatted values.

  3. #3
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61
    Hello Steve

    I am so sorry it's taken me so long to reply to this, I feel really bad but I've been juggling so many projects and spinning plates that, inevitably, this plate felll off.

    Having returned to this project, I find that your solution was perfect and everything is working well now; thank you so much.

    I've added to your reputation and marked this one as solved.

    Merci beaucoup

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

Similar Threads

  1. Yes/No Check Counting in Query
    By Kennertoy in forum Queries
    Replies: 7
    Last Post: 05-20-2012, 09:00 PM
  2. Replies: 2
    Last Post: 05-17-2012, 03:52 PM
  3. Counting in Query
    By EdwinLawrence in forum Queries
    Replies: 3
    Last Post: 03-05-2012, 12:21 PM
  4. counting columns of table to view in dynamic recordset
    By rivereridanus in forum Programming
    Replies: 3
    Last Post: 07-27-2011, 02:44 PM
  5. Help with counting Query
    By metalhead22 in forum Queries
    Replies: 8
    Last Post: 04-29-2009, 02:07 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