Results 1 to 5 of 5
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Listbox vs Subform and getting Sum onmainform

    I have a subform and a listbox on a mainform



    the mainform determines the date range for each query of those two objects.

    It pulls up the records fine.

    so, I have a header on the subform which has a SUM() that sums a column using an unbound text box and the expression sum([Totals])

    I'd like to have the same thing but on the main form but for the listbox

    I would like to put an unbound textbox on the mainform and have it point to the column in the expression of the listbox.

    Possible?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Can't Sum() listbox column.
    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.

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    What information are you trying to get from your listbox? Is it set to allow multiselct?

  4. #4
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by ItsMe View Post
    What information are you trying to get from your listbox? Is it set to allow multiselct?
    nope, just a group list with some count. June is right I think. Kind of annoyed that it isn't standard that you can. I'm having to create a subform if I want to view a total.

  5. #5
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    It is very possible, you'll just need to write a bit of code for it.

    Which column of the listbox do the numerical values appear? And what kind of form is this - single/regular, continuous , etc?
    And when do you want to update this textbox's Sum function?

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

Similar Threads

  1. Listbox and Subform
    By cbrsix in forum Forms
    Replies: 4
    Last Post: 08-21-2013, 08:09 AM
  2. listbox on subform
    By moona in forum Forms
    Replies: 3
    Last Post: 07-23-2013, 12:19 PM
  3. Replies: 4
    Last Post: 11-16-2012, 02:43 AM
  4. Subform to show records of Listbox
    By gbmarlysis in forum Forms
    Replies: 5
    Last Post: 02-27-2012, 04:03 PM
  5. Replies: 1
    Last Post: 03-15-2011, 03:53 PM

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