473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Sorting in Access?

I wonder if you can help me.

I have been using the very basic functions of Access XP for a while now but
I have just started delving into forms etc.

I have created a form to enter my data and I have a couple of pull down
menus (I think they are called Combo boxes) so that I can only select from a
list of data for that field. What I cannot seem to do is make this list
appear in alphabetical order.

One of the pull-down menu lists is from a table, I sorted that table
alphabetically but it does not alter the way the list is shown in the
pull-down menu.
How can I make the list in the pull-down menu appear in alphabetical order?

Also, relating to sorting, I know how to sort a table by having the cursor
in the field to sort by then selecting Records->Sort-> then either Sort
Ascending or descending.
However, I do not know how to do a sort with a secondary field just in case
the first field has identical entries.
Could someone please tell me if this is possible in Access XP and how it is
done?

I hope you can understand what I mean as I don't know all the correct
terminology.

Any help or information will be gratefully appreciated.

Thanks!
Nov 13 '05 #1
2 1838
Rog
Tables in Access have no intrinsic sort order. Base your combobox on a
query and select sort ascending for the field that populates it.

Nov 13 '05 #2
create a query based on your table, then you can sort many fields,
ascending / descending

then use that query as the source to your comboxbox

"Neil Hindry" <n_nospam_hindry@_nospam_hotmail.com> wrote in message news:<42**********************@news.zen.co.uk>...
I wonder if you can help me.

I have been using the very basic functions of Access XP for a while now but
I have just started delving into forms etc.

I have created a form to enter my data and I have a couple of pull down
menus (I think they are called Combo boxes) so that I can only select from a
list of data for that field. What I cannot seem to do is make this list
appear in alphabetical order.

One of the pull-down menu lists is from a table, I sorted that table
alphabetically but it does not alter the way the list is shown in the
pull-down menu.
How can I make the list in the pull-down menu appear in alphabetical order?

Also, relating to sorting, I know how to sort a table by having the cursor
in the field to sort by then selecting Records->Sort-> then either Sort
Ascending or descending.
However, I do not know how to do a sort with a secondary field just in case
the first field has identical entries.
Could someone please tell me if this is possible in Access XP and how it is
done?

I hope you can understand what I mean as I don't know all the correct
terminology.

Any help or information will be gratefully appreciated.

Thanks!

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: mike | last post by:
If I had a date in the format "01-Jan-05" it does not sort properly with my sort routine: function compareDate(a,b) { var date_a = new Date(a); var date_b = new Date(b); if (date_a < date_b)...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
5
by: Mike | last post by:
Hello All, I have a report based upon a query. I have added a control to report footer that calcs the total cost of the inventory: =SUM(). When this total calculation is NOT on the report,...
2
by: drud via AccessMonster.com | last post by:
Is anybody know what algorithms of sorting are realized in Access? I know that this theme is strange but i have to find any information about it... All that I found is "Many of the sort algorithms...
19
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
0
by: Brian Henry | last post by:
Here is another virtual mode example for the .NET 2.0 framework while working with the list view. Since you can not access the items collection of the list view you need to do sorting another...
20
by: martin-g | last post by:
Hi. Mostly I program in C++, and I'm not fluent in C# and .NET. In my last project I began to use LinkedList<and suddenly noticed that can't find a way to sort it. Does it mean I must implement...
1
by: jjjoic | last post by:
Hi, I use Access 2003 to generate the back-end data for a ColdFusion report at work. The report is sorted by a column and based on the sorting, rankings are assigned to each row(i.e. the biggest...
0
by: Yarik | last post by:
Hello, Here is a sample (and very simple) code that binds an Access 2003 form to a fabricated ADO recordset: ' Create recordset... Dim rs As ADODB.Recordset: Set rs = New ADODB.Recordset '...
2
by: Bob Laubla | last post by:
Hello I have a very complex maketable query with many records and involving multiple VB functions which call other functions. I need this table to be sorted by the first field. But no matter what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.