Results 1 to 5 of 5
  1. #1
    jdrubins is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3

    Smile Sum values in concatenated fields

    I could use a little help...



    I am building a report for an event planning database. I'm trying to put together a simple report that in the detail section will display the names of guests and the count of those attending. That part is simple and is working (e.g., each line says "Doe, Jane - 2 guests". Where I am having difficulty is in the page header of the report, I'd like to put a text box that shows "Total Guest Count - 34", where the 34 is a sum of the [number_attending] value from the detail records.

    I've tried writing a concatenated string in the page header as follows...

    ="Total Guest Count - " & Sum(nz([number_attending]))

    but this only returns an #error note in the report preview. The [number_attending] is a number value and is pulling from a query that the report is based on. Can anyone help in how to use a sum function in a concatenated field?

  2. #2
    lloyddobler is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    19
    what happens if you remove the nz function?

  3. #3
    jdrubins is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3
    If I remove the nz function, I still get the error message. The statement as it is written works in the report header... but not in the page header. Trying to get it there so it shows on each page.

  4. #4
    lloyddobler is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    19
    I've had that happen for no reason too. I usually copy/paste from another section or another report where it's doing similar and that has worked. Have you tried copying from the report header?

  5. #5
    jdrubins is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3
    Tried pasting back from the report header into the page header... but no luck. Still getting the error message.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-10-2009, 08:33 AM
  2. Prevent Duplicate Values on Combination of Two Fields
    By LornaM in forum Database Design
    Replies: 8
    Last Post: 05-05-2009, 11:16 PM

Tags for this Thread

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