• Totalling Listbox Values (Access2K/Win2K)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Totalling Listbox Values (Access2K/Win2K)

    Author
    Topic
    #413483

    Not sure if this is possible…

    Listbox on a form.. Two columns.. OrderdID and ShippingCost

    Viewing 0 reply threads
    Author
    Replies
    • #912657

      You could, I suppose, cycle thru the rows of the listbox and add-up the values for that one column. But it would probably be easier to just use the DSum function as the controlsource for the textbox, using the same criteria you used for the listbox.

      • #913113

        DSUM did the job perfectly…

        I’m trying to do a count of the rows in the same listbox.. I’m tring to use DCOUNT but i think i am not referencing the listbox correctly??

        • #913115

          Counting the number of rows is simpler: set the control source of a text box to

          =[NameOfListBox].

          substituting the actual name of the list box.

        • #913116

          Counting the number of rows is simpler: set the control source of a text box to

          =[NameOfListBox].

          substituting the actual name of the list box.

      • #913114

        DSUM did the job perfectly…

        I’m trying to do a count of the rows in the same listbox.. I’m tring to use DCOUNT but i think i am not referencing the listbox correctly??

    Viewing 0 reply threads
    Reply To: Totalling Listbox Values (Access2K/Win2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: