473,405 Members | 2,379 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,405 software developers and data experts.

Sort Button

11
I encounter a problem with refreshing when I click the sort button icon on a form that has 15,500 records with 25 columns initially. There is no problem scroll/page down/up on initial form but after I select a column and hit the sort button icon, I can see the screen refreshing row after row slowly(same thing happen if I scroll/page down/up). I am trying to catch the column name after the sort button icon is click so I can issue the query directly. Does anyone know how to solve this problem?
Jul 2 '07 #1
5 2676
NeoPa
32,556 Expert Mod 16PB
Is the Sort Button something you've implemented yourself or a built-in facility?
Which version of Access are you using?
Jul 2 '07 #2
dkao99
11
It is the build-in on Menu Bar. I am using Access 2003 VBA.
Jul 3 '07 #3
NeoPa
32,556 Expert Mod 16PB
In that case I'm not sure that I can be much help.
With a fairly large table such as yours though, the response times will depend very heavily on whether or not the selected column (field) is included in an index or not. The original order will certainly be (unless you've specified a sort order explicitly yourself in the design), so will be much more responsive than the same data sorted by a non-indexed field.
Jul 3 '07 #4
dkao99
11
I choose a column that I knew is indexed on SQL, the result is the same. Can you have index on Recordset? I know when the sort button is click, the column name is put on the form property "Order By". Can I catch that on the event "Before Render" and reissue the query? The last thing that I think about is having the cobmo box with all the columns that can be sorted. And let the user know only to use it when there are a large records.
Jul 3 '07 #5
NeoPa
32,556 Expert Mod 16PB
I'm sorry. If you're already using indexed fields then I don't know why it would slow down :(
The Form property Order By is quite likely to be updated when you sort. That makes sense, but it doesn't help us any that I can see I'm afraid.
Jul 3 '07 #6

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

Similar topics

1
by: John | last post by:
(acc2002) I have a (continuous) subform (not datasheet) designed to look like columns of data. On each column "header" is a command button that when pressed, sort the records via that field. ...
2
by: Max Harvey | last post by:
Hi all, I have a form which is based on a table. The table (table1) has fields like Surname, Firstname, etc. I want to have the form sort by Surname, and then Firstname. I put the Orderby...
5
by: Bill Reid | last post by:
Hello, I am a just-beyond-beginning user of Access 97 on a Windows 98se machine (a single, non-networked home machine). All of a sudden I am unable to sort any of my tables. I click on any...
12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
2
by: IGotNothin | last post by:
I have a datagrid consisting of multiple boundcolumns and one buttoncolumn. When I sort the grid, the data in the boundcolumns all seems to sort correctly, however the datakey tied to the...
5
by: Greg D | last post by:
I converetd an Access dbase file to an MDE file for distribution. A key component was to allow sorting by fields. The "Sort" icon's show up and work on computers where access installed is...
2
by: curran.george | last post by:
'add one textbox to form1 with Control Source property = ID 'copy/paste the form_load code below: 'Then open the form and then attempt to sort the datasheet 'crashes 2003, error 3450 Access 2007 -...
4
by: blowdoof | last post by:
I'm facing folowing issue: to be able to print a list of objects in a user-defined way, i've implemented an IComparer (sortclass), which is able to sort any object by its property. I have a list...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.