Results 1 to 7 of 7

Sort Query Results to remove duplicate entries and put results on one line.

Threaded View

  1. #1
    Registered User
    Join Date
    04-28-2015
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    3

    Sort Query Results to remove duplicate entries and put results on one line.

    Hello and Thank you in advance.

    I wrote a vba script that runs an SQL query that gives me a list of all the parts we have in stock and where they are located. I need to be able to sort them so that a part is only listed once and all the locations are listed on that row next to the part number. Sometimes there is only one location. Sometimes, there are up to 26 locations.

    My main approach was to sort the parts in order and use a for loop to check for matches and to use relative references to move the found locations up, but I haven't been able to get that to work.

    I've tried everything I can think of and I'm getting no where. I've attached what a sample parts list would look like (sheet1) and how I need to have it sorted (sheet2). I'm not asking for anyone to write this for me. I just need some advice as to what direction I need to head in.

    Thank you for your time and consideration.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] MultiLine Textbox to auto remove blank line, count line, remove duplicate
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2015, 09:28 PM
  2. [SOLVED] Sort results of INDEX/MATCH array formula remove blanks. . .
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2014, 01:53 PM
  3. Query results on subform updated but old results stilled displayed
    By menmine5 in forum Access Tables & Databases
    Replies: 1
    Last Post: 09-29-2013, 02:37 AM
  4. Replies: 1
    Last Post: 02-22-2012, 09:01 AM
  5. Replies: 3
    Last Post: 03-31-2010, 11:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1