473,387 Members | 1,569 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,387 software developers and data experts.

MS Access tables troubleshoot

Hi there i use MS access to manage a small amount of data but i'm getting annoyed by my basic table structure.

i recently replaced all the data in the table with new data, but now i am adding new records.

thing is, tables normally default back to their original settings and layout when you enter and exit, but for sme reason, new records are appearing at the TOP of the table, instead of at the bottom.

i can re sort the table (TableID = ascending) but as soon as i refresh the table, the new records go to the top and away from other more recent records. really annoying.

can anyone help. i DO NOT want to use a query, i have plenty of those. i want my basic table to default back to the original order.

cheers
alison
Aug 2 '07 #1
14 2114
bartonc
6,596 Expert 4TB
Let's see what they have to say in the Access Forum, shall we...
Aug 2 '07 #2
JustJim
407 Expert 256MB
Hi there i use MS access to manage a small amount of data but i'm getting annoyed by my basic table structure.

i recently replaced all the data in the table with new data, but now i am adding new records.

thing is, tables normally default back to their original settings and layout when you enter and exit, but for sme reason, new records are appearing at the TOP of the table, instead of at the bottom.

i can re sort the table (TableID = ascending) but as soon as i refresh the table, the new records go to the top and away from other more recent records. really annoying.

can anyone help. i DO NOT want to use a query, i have plenty of those. i want my basic table to default back to the original order.

cheers
alison
Haven't seen that before, how are you adding records? It really shouldn't matter though because a table is just a bucket to hold data. Then you use queries or recordsets to gather and organise the data and forms or reports to present it to your users.

Sorry, just realised I was pontificating... How are you adding records? That may hold the key.

Jim
Aug 2 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Hi there i use MS access to manage a small amount of data but i'm getting annoyed by my basic table structure.

i recently replaced all the data in the table with new data, but now i am adding new records.

thing is, tables normally default back to their original settings and layout when you enter and exit, but for sme reason, new records are appearing at the TOP of the table, instead of at the bottom.

i can re sort the table (TableID = ascending) but as soon as i refresh the table, the new records go to the top and away from other more recent records. really annoying.

can anyone help. i DO NOT want to use a query, i have plenty of those. i want my basic table to default back to the original order.

cheers
alison
What is the primary key of your table?

Also have a look at this tutorial, it may help?

Database Normalisation and Table Structures
Aug 2 '07 #4
Haven't seen that before, how are you adding records? It really shouldn't matter though because a table is just a bucket to hold data. Then you use queries or recordsets to gather and organise the data and forms or reports to present it to your users.

Sorry, just realised I was pontificating... How are you adding records? That may hold the key.

Jim
I'm adding the data in to the bottom of the table. Yesterday i had to copy all my data into a new table (whose structure i duplicated from the original table) because one of the records got corrupted and was crashing the file. so i duplicated the table structure and appended all my records to the table. but as i am adding other records, the new records appear at the TOP of the list instead of at the bottom, in the obvious place that the records go. And just now, i reproduced the problem (copied the file structure, pasted the records (did a paste this time, instead of an append)) and the new test record appears in the MIDDLE of the list. in what appears to be a random spot. strangely, when i remove the filter (ie refresh the table) the new record moves up to number 904 of 1297. for no reason. all subsequent records then apprear after this one. it's very odd.

Can you help. as mentioned i do not want to use a query, i want to know why this is behaving so oddly. thanks!
alison
Aug 3 '07 #5
JustJim
407 Expert 256MB
Bump

Sorry all - I'm away from work and away from home and can only get intermittent access to the 'Net. Can anyone field this for me?
Aug 6 '07 #6
puppydogbuddy
1,923 Expert 1GB
Bump

Sorry all - I'm away from work and away from home and can only get intermittent access to the 'Net. Can anyone field this for me?
Sounds like your table indexes are corrupted. Place the table in design view; click the index button on the toolbar;delete the indexes (including Primary Key);save; then re-add the indexes; save; test and see if that helped.
Aug 7 '07 #7
Sounds like your table indexes are corrupted. Place the table in design view; click the index button on the toolbar;delete the indexes (including Primary Key);save; then re-add the indexes; save; test and see if that helped.
OH DEAR

i just did that. and the table reorded itself completely randomly when appended to the new table. now the chronology i had in place due to it's sequence is destroyed. now i need to restore from backup tape.

and it seemed such a good idea (!!)
Aug 8 '07 #8
puppydogbuddy
1,923 Expert 1GB
OH DEAR

i just did that. and the table reorded itself completely randomly when appended to the new table. now the chronology i had in place due to it's sequence is destroyed. now i need to restore from backup tape.

and it seemed such a good idea (!!)
I told you to delete the primary key index, not the primary key itself. The autonumber primary key should still be there. All you have to do is sort by the key before you rebuild index. So delete indexes again; order the table by the key value using sort button, then rebuild indexes.
Aug 8 '07 #9
FishVal
2,653 Expert 2GB
Hi, Alison.

Just a silly question. Have you tried to sort the table by Autonumber field and then save table design?
Aug 9 '07 #10
I told you to delete the primary key index, not the primary key itself. The autonumber primary key should still be there. All you have to do is sort by the key before you rebuild index. So delete indexes again; order the table by the key value using sort button, then rebuild indexes.
did that, and it still filters randomly in a non sequential manner. forget it - it's clearly difficult to identify without seeing how oddly it's behaving in the flesh. i'll rebuild using an old format that didn't have this problem and update my data.

and yes, i've reorderd by autonumber and saved, that didn't help.

thanks everyone.
alison
Aug 13 '07 #11
puppydogbuddy
1,923 Expert 1GB
did that, and it still filters randomly in a non sequential manner. forget it - it's clearly difficult to identify without seeing how oddly it's behaving in the flesh. i'll rebuild using an old format that didn't have this problem and update my data.

and yes, i've reorderd by autonumber and saved, that didn't help.

thanks everyone.
alison
Alison,
the problem you are having could be a symtom of corruption. I would carefully read the following link and if possible try some of the preventive measures and remedies if they could apply to you.

http://allenbrowne.com/ser-47.html
Aug 13 '07 #12
none of these meausre seem to work. this same problem is happening to many number of tables, it's not a corruption it's a constant problem and in fact, even when there is a primary ID number autonumbered which has been created from scratch, changing the filter will do incredibly strange things to just those few records. you all sound so terribly knowledgable and full of bright ideas, any chance someone can replicate a new table in MS access, as i've indicated and see what they come up with? all these suggestions are pretty random.

after all, you're the experts!
thanks
Aug 29 '07 #13
NeoPa
32,556 Expert Mod 16PB
Alison,
To do that we will need a more thorough description of your table. The following example can show how to post this info :
Table Name=tblStudent
Expand|Select|Wrap|Line Numbers
  1. Field; Type; IndexInfo
  2. StudentID; Autonumber; PK
  3. Family; String; FK
  4. Name; String
  5. University; String; FK
  6. Mark; Numeric
  7. LastAttendance; Date/Time
Use copy and paste after clicking on the Reply button to get the proper formatting.
You will also need to provide a small subset of the data that we could enter into our copies for this to prove useful. I suggest you test out with a small set of data (ensuring it displays the properties you're talking about) before posting the data here (in CODE tags for readability) for our attempts at reproducing the problem.
Aug 29 '07 #14
MMcCarthy
14,534 Expert Mod 8TB
none of these meausre seem to work. this same problem is happening to many number of tables, it's not a corruption it's a constant problem and in fact, even when there is a primary ID number autonumbered which has been created from scratch, changing the filter will do incredibly strange things to just those few records. you all sound so terribly knowledgable and full of bright ideas, any chance someone can replicate a new table in MS access, as i've indicated and see what they come up with? all these suggestions are pretty random.

after all, you're the experts!
thanks
corruption of a database can appear in many guises.

To test try creating a brand new table in a new database and see if the behaviour is duplicated. If it is not then the answer lies in corruption.
Aug 29 '07 #15

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

Similar topics

5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
3
by: heather e blair | last post by:
We have an Access 2002 database of about 35 M with about 7 users. The data lives on the server (Windows 2000 server), while the queries, forms, reports, etc. live in a file that is on each...
4
by: shunah | last post by:
Every few weeks the db I'm working on fails to open. The opening splash screen hangs and after a while I get a message from Windows that Access closed abnormally and information was written to an...
3
by: premmehrotra | last post by:
I am using Access 2000 and Oracle 9.2.0.x on a Windows 2000. I have setup Oracle 9.2 ODBC Driver (I have not yet figured how to set Microsoft's Oracle ODBC driver). I am exporting a table from...
1
by: Rico | last post by:
I have tried to access a database using asp.net. after some entries like 120+, I got an unspecified error message. Anyone know what is happening, it seems to be stuck at the same line even when i...
3
by: comp_databases_ms-sqlserver | last post by:
This post is related to SQL server 2000 and SQL Server 2005 all editions. Many of my stored procedures create temporary tables in the code. I want to find a way to find the query plan for these...
13
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a...
3
by: Andrew | last post by:
Hi All I wonder if anyone can help me with this. The scenario is that I have a pair of related tables. One contains record labels, the other contains contact names at those labels. In the...
13
by: Dave | last post by:
I work at a small private company that has been using VB 6.0 as a front end for Access databases for 8 years. It looks as though we will be migrating to Vista in the not-too-distant future. My...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.