Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6671633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:24:42+00:00 2026-05-26T03:24:42+00:00

I have a Listbox with 3 columns on an access form which has as

  • 0

I have a Listbox with 3 columns on an access form which has as it’s row source a value list (not a recordset from the db), which is passed as comma seperated string. The third column is a numeric value, and I wish to sort the listbox desc on that third column.

The rowsource looks like this:

0,Standard price,1650,
14,Bookings made during Oct 2011,3770,
15,Minimum Stay 4 Nights - Special Price,2460

The listbox populates correctly. I just have no idea how to sort the listbox by the third column in this case. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:24:43+00:00Added an answer on May 26, 2026 at 3:24 am

    A very rough idea using disconnected recordset:

    Dim rs As New ADODB.Recordset
    
    slist = "0,Standard price,1650," _
    & "14,Bookings made during Oct 2011,3770," _
    & "15,Minimum Stay 4 Nights - Special Price,2460"
    
    With rs
      .ActiveConnection = Nothing
      .CursorLocation = adUseClient
      .CursorType = adOpenStatic
      .LockType = adLockBatchOptimistic
      With .Fields
        .Append "Field1", adInteger
        .Append "Field2", adVarChar, 200
        .Append "Field3", adInteger
      End With
      .Open
    
    
      ary = Split(slist, ",")
    
      For j = 0 To UBound(ary)
          .AddNew
          For i = 0 To 2
              .Fields(i).Value = ary(j)
              j = j + 1
          Next
          j = j - 1
    
      Next
    
      .Sort = "Field3"
    End With
    
    slist = rs.GetString(, , ",", ",")
    slist = Left(slist, Len(slist) - 1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a databound listbox which is actually displaying two columns of data. It
I have listbox which binds data to DataTable and now I need to access
I have a listbox in which I am displaying the records from the database.
I have an iFrame which has it's source set to another aspx page. The
We have a standard Access listbox with multiple columns. Is there a way to
I have a listbox like so: list.DataSource = bindingSource; list.DisplayMember = column_name; Later I
I have a ListBox that has a style defined for ListBoxItems. Inside this style,
I have a ListBox which displays items of variable height. I want to show
I want my ListBox to have columns, and one of those columns have to
So I have a collection that I have in a listbox right now, which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.