473,394 Members | 1,693 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.

MS Access Sorting

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 ADODB.Recordset, sorting, and outputing
I have tried running another maketable query from that table and sorting it in that query.
Nothing works, there is always a small chance of it not sorting. By not sorting I mean that the table looks like the program tried to sort it and then gave up halfway. The most common unsorted output is a sorted table cut in half, with the bottom half being on top.
What is going on?
Also, we have our database on the server and users have custom front ends. But for quicker access I copy the database to my desktop. My boss however, uses the database over the network. What we have noticed is that an unsorted table occurs more times to her than to me (we think)-- if that helps.
The field I'm sorting on is a text field in the form ###?.
We use Access 2003 SP3
Any help would be greatly appreciated.
Mar 3 '08 #1
2 2229
Stewart Ross
2,545 Expert Mod 2GB
...But no matter what I do, there is a small chance of the table coming out unsorted....
Hi Bob. I've also had sorting issues with Access 2003 on complex queries. In one case a query with mutliple intermediate queries sorted into order on multiple fields failed on occasions, and running this same query twice in succession on static data produced different sort orders. Initially with around 4000 rows the failures were rare, but by the time this had grown to around 7000 rows of data the failure was occurring at random but every time it was run (which was on a daily basis). The sorting was crucial to department output in my application, and caused output errors in exports to Excel.

Given your experience too I would reckon this is a bug in Access 2003 somewhere.

I resorted to outputting the mainly-sorted complex query to a temporary table, then outputting from the temporary table using a query that did another, final, sort. There was no other processing done in this query. This has performed with 100% reliability ever since.

-Stewart
Mar 4 '08 #2
Well, the thing is that I don't have that much records. The table usually has about 300-400 rows. It's just that per row, the last few cells have 10-60 lines of text in them.

Hmm, this gives me an idea. I will create a unique id for each row, then create 2 tables, first one with the sorting number and the id and the second one with the id and the rest of the row. Then sort the first simple one, and then link on id to the rest of the row.

Thanks for your help.
Mar 4 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
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...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
7
by: manning_news | last post by:
I've got a report that's not sorting correctly. I build a SQL statement and assign it to the recordsource in the Open event, sorting the data the way the user chooses. The user can choose up to 3...
4
by: ApexData | last post by:
I have one table used to maintain information on Service Events. Each record contains a Repair, Maint, and Battery checkbox (bound/boolean). Any one of these fields may be checked or left empty....
16
by: Claudio Grondi | last post by:
I have a 250 Gbyte file (occupies the whole hard drive space) and want to change only eight bytes in this file at a given offset of appr. 200 Gbyte (all other data in that file should remain...
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 '...
9
by: Don | last post by:
I've continued to use Access 97 all these years because (1) it does everything I need quickly and (2) most of what I've read online indicates that it's still the most bug-free version of Access. ...
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: 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
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,...
0
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.