Results 1 to 8 of 8

Mr

  1. #1
    Abdulaym is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    33

    Mr


    Hi, pls I have a Combo box "Productname" which contains list of items like buscuits, sweets and milk. With the quantity sold. How do I get the quantity of buscuit, sweets and milk sold through query or any other means. Thanks

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Look at the Group BY clause and SUM() on quantity field.

    Get yourself on to Youtube and look at some videos.

    https://www.youtube.com/results?sear...m+access+query
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Get them where? This quantity value is included as column of combobox or do you mean quantity is a textbox on form?

    A textbox expression can reference combobox column by index. If quantity is in second column, its index is 1: =[Productname].Column(1)

    Build a report and use its Grouping & Sorting features with aggregate calculation in textbox. This allows display of detail data as well as summary info.
    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.

  4. #4
    Abdulaym is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    33
    Thanks for your reply, the quantity is a textbox, while buscuit, sweets and milk are in combo box. You mean the column where the quantity is in a table or subform? Thanks

  5. #5
    Abdulaym is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    33
    Thanks for the reply

  6. #6
    Abdulaym is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    33
    Hi, I have a query which I used for my report. the reports gives me the quantity of each product I sale and their total. But my question now is that; I want a daily reports I.e. todays report should not mix with tomorrow report? Thanks for your usual assistance

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by Abdulaym View Post
    Hi, I have a query which I used for my report. the reports gives me the quantity of each product I sale and their total. But my question now is that; I want a daily reports I.e. todays report should not mix with tomorrow report? Thanks for your usual assistance
    Group by Date as well then.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Can you upload your database so we can see your table structures?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

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