473,466 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Missing Records

I've got a fairly large Access file with 4899 records. The ID field
runs sequentially but misses two rows: it skips 3727 and 3740.
Consequently, the dbase indicates that I have 4901 rows where in
reality I only have 4899. I've inherited this problem from someone
else who imported an Excel file into Access. I can't delete rows or
renumber the rows to reflect the proper number of entries. I've tried
Help and On-line Help but I can't find the right answer. Can someone
please help me out? Thanks. Regards, John
Nov 13 '05 #1
3 2291
Sure, I can help you out, John. Don't use AutoNumber fields for any purpose
where a human sees them. If you run a query against that table, down at the
bottom, it will give you the actual number of rows.

AutoNumbers are for internal use, as surrogate keys, to simplify the joining
of related tables. They are not, repeat NOT, to be shown to users nor to
indicate how many records exist in a table.

If you simply want to list the records with a sequential number... do it in
a report, and include a text box with a control source of "=1" and set its
RunningSum property to OverGroup or OverAll as you desire.

Larry Linson
Microsoft Access MVP

"John Duchowski" <jd******@pall.com> wrote in message
news:69**************************@posting.google.c om...
I've got a fairly large Access file with 4899 records. The ID field
runs sequentially but misses two rows: it skips 3727 and 3740.
Consequently, the dbase indicates that I have 4901 rows where in
reality I only have 4899. I've inherited this problem from someone
else who imported an Excel file into Access. I can't delete rows or
renumber the rows to reflect the proper number of entries. I've tried
Help and On-line Help but I can't find the right answer. Can someone
please help me out? Thanks. Regards, John

Nov 13 '05 #2
So what you're telling me is to simply ignore the AutoNumber (AN) field?
You're right, the number at the bottom displays the correct number of
entries. I a newbie here, so pls bear with me :-) - but the end users are
confused and purturbed by the numbers missing from the sequence. Everything
has to jive. So the number in the AN has to agree with the number at the
bottom. Or, as you suggest, I'd be very happy just to prevent the AN field
from displaying but I don't know how to do it...

"Larry Linson" <bo*****@localhost.not> wrote in message
news:fR*****************@nwrddc02.gnilink.net...
Sure, I can help you out, John. Don't use AutoNumber fields for any purpose where a human sees them. If you run a query against that table, down at the bottom, it will give you the actual number of rows.

AutoNumbers are for internal use, as surrogate keys, to simplify the joining of related tables. They are not, repeat NOT, to be shown to users nor to
indicate how many records exist in a table.

If you simply want to list the records with a sequential number... do it in a report, and include a text box with a control source of "=1" and set its
RunningSum property to OverGroup or OverAll as you desire.

Larry Linson
Microsoft Access MVP

"John Duchowski" <jd******@pall.com> wrote in message
news:69**************************@posting.google.c om...
I've got a fairly large Access file with 4899 records. The ID field
runs sequentially but misses two rows: it skips 3727 and 3740.
Consequently, the dbase indicates that I have 4901 rows where in
reality I only have 4899. I've inherited this problem from someone
else who imported an Excel file into Access. I can't delete rows or
renumber the rows to reflect the proper number of entries. I've tried
Help and On-line Help but I can't find the right answer. Can someone
please help me out? Thanks. Regards, John


Nov 13 '05 #3
John Duchowski wrote:
So what you're telling me is to simply ignore the AutoNumber (AN)
field? You're right, the number at the bottom displays the correct
number of entries. I a newbie here, so pls bear with me :-) - but the
end users are confused and purturbed by the numbers missing from the
sequence. Everything has to jive. So the number in the AN has to
agree with the number at the bottom. Or, as you suggest, I'd be very
happy just to prevent the AN field from displaying but I don't know
how to do it...


Larry's advice stands. When making forms to present data to the user
there's no need to bind any control to the AN field. Thus they will not see
it.
If they've got direct access to a table (that might not be a good idea) then
you could just hide the column.
Nov 13 '05 #4

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

Similar topics

0
by: Duncan Smith | last post by:
Hello, I'm not very experienced in SQL and I need some advice. I have a comma separarated values file containing around 20 million records and about 20 fields. There are many missing values...
5
by: Andrew | last post by:
Hi All, Have come across something weird and am after some help. Say i run this query where rec_id is a column of table arlhrl, select * from arlhrl where rec_id >= 14260 This returns to...
1
by: RobMea | last post by:
I am trying to find a solution to the following problem. First off I'm new to Access and SQL but have a good back ground in other languages, thus at a new job this has just been dumped on me so...
1
by: KC | last post by:
Hello, I am using Access 2002. WinXP, Template from MS called Orders Mgmt DB. I have tweaked this DB to work for our small co. It has worked pretty well up until I made the mistake of deleting...
1
by: shalini0702 | last post by:
Hi, I have Missing Records when exporing a table from (msaccess) One database to another. Supppose My Db has 10 tables and expoting all the table from One database to another was correct. ...
3
by: danceli | last post by:
After loading the BCP files that are created during the trigger/ reporting events I've noticed that the data in the table is missing records. I've also noticed that the missing records (records in...
2
by: danceli | last post by:
I have made trigger on table 'FER' that would be fired if data is inserted, updated to the table. And also, I made batch file using bcp to extract the newly updated / inserted records. But I got...
1
by: anubis2k7 | last post by:
Hi, I am having a problem with dynamically sorting/grouping data in my report at runtime. My problem is that when the report is run using sorting/grouping I am missing data. Specifically, my...
4
by: Tempalli | last post by:
I am entering records in Ms Access with a series as displayed where as i want to delete few records in this series. Is it possible to assign the missing series to next entry. for example i want...
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
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
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
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,...
0
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
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
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.