Accidentally deleted a record. Anyway to get it back?
If not, I know the ID number - which is an autonumber field. Because
of the related data from other tables, would I be able to create a new
record and make its ID number, that of the deleted record?
Thanks!
magmike
Oct 12 '07
12 5582
On Oct 22, 9:09 pm, "Larry Linson" <boun...@localh ost.notwrote:
"DavidB" <je...@yahoo.co mwrote
EXACTLY the reason that I always use RANDOM
for my autonumebr fields rather than sequential. This
way I am rid of even the appearance that the numbers
'mean' anything.
Appearance to whom? Surely not to the users... the occasion would truly be
a rare one for me to expose an Autonumber field. They are for internal use,
surrogate keys, and linking and none of those functions requires the user to
see them.
It's not neccessarily, always true, but it is a reasonable assumption that
after paying my rate, a client will likely get a competent contractor to
follow me, and a competent Access contractor should know that Autonumber
fields have no intrinsic meaning.
And, I certainly don't need a reminder. My first encounter with a client's
high-tempered-green-eyeshade-and-sleeve-garter accounting/bookkeeping type
over missing numbers in a sequence of AutoNumbers was quite enough to
impress on my memory forever: even if you think the person is knowledgeable
and won't be misled, you can and should avoid showing them Autonumbers.
Larry Linson
Microsoft Access MVP
Larry Linson
Microsoft Access MVP
Agreed that end users should never see the autonumber. Indeed in my
work they never do. Also having been a green visor type in a previou
incarnation (for some reason i did audit work for 9 years), I know all
to well what they infer fro a 'missing' number. It is my normal
practice to assume nothing. So I don't assume that whoever takes over
my databases when I get hit by a bus is at any given level. In
addition since there (IMHO) is no specific benefit in using
incremental or a detriment to using sequential, I opt for the latter.
Probably more a matter of personal choice than anything else.
On Oct 23, 2:00 pm, DavidB <je...@yahoo.co mwrote:
On Oct 22, 9:09 pm, "Larry Linson" <boun...@localh ost.notwrote:
"DavidB" <je...@yahoo.co mwrote
EXACTLY the reason that I always use RANDOM
for my autonumebr fields rather than sequential. This
way I am rid of even the appearance that the numbers
'mean' anything.
Appearance to whom? Surely not to the users... the occasion would truly be
a rare one for me to expose an Autonumber field. They are for internal use,
surrogate keys, and linking and none of those functions requires the user to
see them.
It's not neccessarily, always true, but it is a reasonable assumption that
after paying my rate, a client will likely get a competent contractor to
follow me, and a competent Access contractor should know that Autonumber
fields have no intrinsic meaning.
And, I certainly don't need a reminder. My first encounter with a client's
high-tempered-green-eyeshade-and-sleeve-garter accounting/bookkeeping type
over missing numbers in a sequence of AutoNumbers was quite enough to
impress on my memory forever: even if you think the person is knowledgeable
and won't be misled, you can and should avoid showing them Autonumbers.
Larry Linson
Microsoft Access MVP
Larry Linson
Microsoft Access MVP
Agreed that end users should never see the autonumber. Indeed in my
work they never do. Also having been a green visor type in a previou
incarnation (for some reason i did audit work for 9 years), I know all
to well what they infer fro a 'missing' number. It is my normal
practice to assume nothing. So I don't assume that whoever takes over
my databases when I get hit by a bus is at any given level. In
addition since there (IMHO) is no specific benefit in using
incremental or a detriment to using sequential, I opt for the latter.
Probably more a matter of personal choice than anything else.- Hide quoted text -
- Show quoted text -
I have been using auto numbers to create an output file to import into
a relational database. These numbers are used to batch file and create
tickets to pull material. I am still creating the database and was
reading your info and I might have duplicate values. I have created a
table with a number of "00001" and I do an append into the auto number
field of the primary table prior to importing the data and appending
the primary table with some queries which then is exported in the
proper format. I compact the database when it is opened so the numbers
will start over. This will create duplicate values if more than one
file is imported and the database has been closed. Is there a way to
loop the numbers from "00001" thru "1998" or even have a letter at
the begining.
Thanks.
Wayne
On Oct 24, 6:44 am, Wayne <lawayne.loesc. ..@navy.milwrot e:
On Oct 23, 2:00 pm, DavidB <je...@yahoo.co mwrote:
On Oct 22, 9:09 pm, "Larry Linson" <boun...@localh ost.notwrote:
"DavidB" <je...@yahoo.co mwrote
EXACTLY the reason that I always use RANDOM
for my autonumebr fields rather than sequential. This
way I am rid of even the appearance that the numbers
'mean' anything.
Appearance to whom? Surely not to the users... the occasion would truly be
a rare one for me to expose an Autonumber field. They are for internal use,
surrogate keys, and linking and none of those functions requires the user to
see them.
It's not neccessarily, always true, but it is a reasonable assumption that
after paying my rate, a client will likely get a competent contractor to
follow me, and a competent Access contractor should know that Autonumber
fields have no intrinsic meaning.
And, I certainly don't need a reminder. My first encounter with a client's
high-tempered-green-eyeshade-and-sleeve-garter accounting/bookkeeping type
over missing numbers in a sequence of AutoNumbers was quite enough to
impress on my memory forever: even if you think the person is knowledgeable
and won't be misled, you can and should avoid showing them Autonumbers.
Larry Linson
Microsoft Access MVP
Larry Linson
Microsoft Access MVP
Agreed that end users should never see the autonumber. Indeed in my
work they never do. Also having been a green visor type in a previou
incarnation (for some reason i did audit work for 9 years), I know all
to well what they infer fro a 'missing' number. It is my normal
practice to assume nothing. So I don't assume that whoever takes over
my databases when I get hit by a bus is at any given level. In
addition since there (IMHO) is no specific benefit in using
incremental or a detriment to using sequential, I opt for the latter.
Probably more a matter of personal choice than anything else.- Hide quoted text -
- Show quoted text -
I have been using auto numbers to create an output file to import into
a relational database. These numbers are used to batch file and create
tickets to pull material. I am still creating the database and was
reading your info and I might have duplicate values. I have created a
table with a number of "00001" and I do an append into the auto number
field of the primary table prior to importing the data and appending
the primary table with some queries which then is exported in the
proper format. I compact the database when it is opened so the numbers
will start over. This will create duplicate values if more than one
file is imported and the database has been closed. Is there a way to
loop the numbers from "00001" thru "1998" or even have a letter at
the begining.
Thanks.
Wayne- Hide quoted text -
- Show quoted text -
"00001" is a string not a number. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: C Kirby |
last post by:
I'm running a DB using MSDE (2000) that is interfaced by 2 different
ades running on PCs with Access 2000 Runtime. One of the ADEs is a
package accounting system that is very solid and stable, the other is
a custom application that I wrote (much less solid and stable). The
custom app only deals with a select few tables in the database, and
the table in question is not one of those.
With alarming regularity(daily), records are getting...
|
by: Robert Schneider |
last post by:
Hi to all,
I don't understand that: I try to delete a record via JDBC. But I always
get the error SQL7008 with the error code 3. It seems that this has
something to do with journaling, since the table from which I want to
delete has two foreign keys that references two other tables and it is
also referenced by another table. But this shouldn't be a problem, since I
set the commit mode to none (or *none) at all places where this makes...
|
by: DaveDiego |
last post by:
I've had a user delete one of the client records, I do have a version of
the DB with all records intact before the deletion occured.
Whats the best approach to getting all the related records in each of
the tables? I have about 12 tables to put data back into and multiple
records for each. Would I need to make an append or update query for each
table?
|
by: Mike Turco |
last post by:
What is the difference between creating relationships in the front-end vs.
the back-end database? I was trying to create a relationship in a database
front-end and noticed that I could not check the referential integrity box.
What gives?
Continuing on with that line of thinking, I understand what do the
relationships do for you in a database, but what do they do physically to
the tables?
Thanks,
|
by: iam247 |
last post by:
Hi
I am a relative beginner with SQL and ASP. With some help after
previous posts I have a page which successfully requests querystrings
from another page and deletes a record from an access table, However, I
get the error message:
"Row handle referred to a deleted row or a row marked for deletion"
I am using access 2002, the table only has 2 fields (ContactID and
| |
by: Siv |
last post by:
Hi,
I seem to be having a problem with a DataAdapter against an Access database.
My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable.
I then proceed to update a list to reflect that the 3 items have been
deleted only to discover that the 3 items appear, however when I click on
them to display their information which runs a datareader over the same
database it appears that the data has now gone.
I wondered whether...
|
by: BrianDP |
last post by:
This is a strange one--
I have an Access 2K database with a split front end/back end. There
are two tables in the back end - RFile and RLine. There is a one to
many relationship from Rfile.Rnumber to Rline.Rnumber. Originally I
went in with the Relationships window, drew the line, and clicked the
cascading updates and deletes. Everything was fine, for a couple of
years.
All of the sudden however, this relationship seems to delete...
|
by: BrianDP |
last post by:
I have a database with a split front end/back end. There is a key
table in the back end called Catalog, and it is sort of a central key
table for all sorts of things. It's a list of all the jobs that have
ever been worked on at our company. Records are getting lost out of
this table, but I have no way of figuring out how they're being
deleted. Records should NEVER be deleted out of this table. They can
be marked as inactive, or...
|
by: heatguru |
last post by:
An Access 2000/2003 database has a form containing a memo field. Periodically the value of the memo field will show as #Deleted while the record itself is fine. The #Deleted value interferes with reports and an automated process.
To correct the record, I have to recreate it and delete the old. Is there any way on the form, I can allow users to enter and edit, but not delete the value?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |