473,511 Members | 15,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automatic index changes

Hi, I was wondering if you could help me with something. I have a
table in access that I have placed an autonumber index on to run in
ascending order. Data is entered onto the table through a number of
forms and using DAO. My problem is that every so often the index
decides itself to reverse to descending order. As I use a move last to
reference the appropriate part of the table for data entry, this can
cause no end of problems. I was hoping someone could tell me why this
happens, or how it happens or how I can prevent it from ever happening
again????

Thanks in advance
Nov 13 '05 #1
2 1207
Rog
A table in Access has no instrinsic order. Base your form on a sorted
query, and use "order by" in your sql string to sort your dao
recordset.

MissiMaths wrote:
Hi, I was wondering if you could help me with something. I have a
table in access that I have placed an autonumber index on to run in
ascending order. Data is entered onto the table through a number of
forms and using DAO. My problem is that every so often the index
decides itself to reverse to descending order. As I use a move last to reference the appropriate part of the table for data entry, this can
cause no end of problems. I was hoping someone could tell me why this
happens, or how it happens or how I can prevent it from ever happening again????

Thanks in advance


Nov 13 '05 #2
mi********@hotmail.com (MissiMaths) wrote:
Hi, I was wondering if you could help me with something. I have a
table in access that I have placed an autonumber index on to run in
ascending order. Data is entered onto the table through a number of
forms and using DAO. My problem is that every so often the index
decides itself to reverse to descending order. As I use a move last to
reference the appropriate part of the table for data entry, this can
cause no end of problems. I was hoping someone could tell me why this
happens, or how it happens or how I can prevent it from ever happening
again????


There is a bug in an older version of Jet Service Pack which had this problem. Is
every computer running a recent version of Jet? Preferably Jet 4.0 SP 8 or newer.

What I've done is use the various API calls available and am checking the version
number and date/time of a crucial dll, msjetxx.dll, to ensure it matches what I have
on my system. See the Verify Appropriate Jet Service Pack is installed page at my
website for more details including sample code:
www.granite.ab.ca\access\verifyjetsp.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #3

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

Similar topics

0
2431
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in...
2
3105
by: The List Man | last post by:
Crontabs for automatic site updates. Does anyone know how to set up a crontab for automatically updating a webpage on a regular basis. We know how to set these to run perl files, but seem to...
2
3072
by: Ty Moffett | last post by:
Below is a set of insructions that changes the registry keys pertaining to Automatic Updates on my Windows XP box. I can make changes using the control panel applet and see the changes reflected...
2
2236
by: John | last post by:
Hello everyone, I'm currently writing a program to keep track of schedule changes at a school. The goal is to have someone using the program to declare changes, then the program writes a html...
0
7252
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
7371
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,...
1
7093
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
7517
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
5676
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,...
1
5077
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...
0
4743
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...
0
3230
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.