473,805 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1860
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_hindr y@_nospam_hotma il.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
4180
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) { return -1; } else
8
3539
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 the moment the printed output is usually going to Word. It's turning into an unholy mess, because I'm having to prepare umpteen different Word templates, and the queries that drive them, depending on what events a course has.
5
2055
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, the report displays as it should in ascending order by inventory number (inv_num). 1102 1103
2
1889
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 that are in FoxPro are now used in Microsoft Jet", "Microsoft Jet 3.0 has new sort engine" and no more.
19
25476
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 sort columns based on the column header the user has clicked in both Ascending and Descending formats.
0
3244
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 way... here is my code on how I did it to help anyone starting out get an idea of how to use virtual mode in ..NET 2.0 Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared
20
20919
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 sorting for LinkedList<myself? Thanks in advance Martin
1
3897
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 value gets No. 1, and then the row of the second biggest value is ranked as No. 2). Each task owners will then have to attack their owning issues based on the ranking. The No. 1, 2, 3,... rankings are generated in this way: 1. An...
0
3139
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 ' Append one or more fields... Call rs.Fields.Append("Number", adInteger)
2
2266
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 I do, there is a small chance of the table coming out unsorted. I have tried sorting it with the 'make table' query. I have tried sorting it with Word during output (my current configuration runs 4 of these). I have tried reading it into an...
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.