Hi,
Are you talking about sorting from within a form or report? If so, then you should set the recordsource to be based on a query, and inside the query it is very easy to set the sort selection for any field(s) to ascending or descending.
I have a table with tons of entries, and I need to open the form based on this table many times. So, if I use a query, the query is called each time, and it's very very slow !!!!
So I think if I sort the table instead of using a query, the work wioll already be done for the next time !!
(I can't do it manually cause I have another form using the other sorting, so I really want to sort my table with VBA code)
Hi,
Go to Tables, then select Design. Did you set the sort field to Primary Key, and the Indexed property of the field to Yes?
If you have done all this, then is there any way to move old records to an archive table?
You also need to consider the processor speed of the pc, the amount of available memory, and the number of other applications running at that time.
Thank for trying to help me.
I know the speed of the operation depends on my computer.
Using this method, the work is not more fast, but it is done very less frequently.
So, if anyone has a better idea to set it faster ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.