Results 1 to 2 of 2
  1. #1
    mnaem02 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    24

    Group by

    How can i put group by in below code






    Dim strsource As String


    strsource = "SELECT UnitsMeasureTotal, UnitsMeasure " & _
    "FROM InventoryProducts " & _
    "WHERE UnitsMeasure = '" & UnitsMeasure & "'"





    UnitsMeasureTotal.RowSource = strsource
    UnitsMeasureTotal = vbNullString

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Create the query in query design, then copy and paste the SQL into VBA, making changes as required.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-26-2016, 01:07 PM
  2. Replies: 2
    Last Post: 01-27-2016, 08:38 AM
  3. Replies: 6
    Last Post: 06-09-2015, 09:51 AM
  4. Replies: 3
    Last Post: 04-28-2015, 02:16 AM
  5. Replies: 0
    Last Post: 02-25-2013, 04:43 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