473,406 Members | 2,273 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,406 software developers and data experts.

data / record duplication multiuser dbase

Hello,

Has anyone experienced that records get duplicated by itself. When I
look in my tables backend mdb file there are 2 records with the same
information. I'm sure the frontend created this records. How can i solve
this problem? There are 3 users that connect to the backend file on a
windows 2003 share. My basic form uses subforms, and a search field
combobox created by access. There is one table with clients, on table
with volunteers and a table with appointments wich can be bound to a
client and a volunteer. The appointments subform is always present on
the client and volunteers form.

Thanks in advance,

Nathan
Jul 7 '07 #1
12 1340
On Sun, 08 Jul 2007 00:31:46 +0200, nathan <ur*****@wanadoo.nlwrote:

A good database design prevents illogical duplicates with primary keys
and unique indexes.

-Tom.

>Hello,

Has anyone experienced that records get duplicated by itself. When I
look in my tables backend mdb file there are 2 records with the same
information. I'm sure the frontend created this records. How can i solve
this problem? There are 3 users that connect to the backend file on a
windows 2003 share. My basic form uses subforms, and a search field
combobox created by access. There is one table with clients, on table
with volunteers and a table with appointments wich can be bound to a
client and a volunteer. The appointments subform is always present on
the client and volunteers form.

Thanks in advance,

Nathan
Jul 7 '07 #2
nathan wrote:
Hello,

Has anyone experienced that records get duplicated by itself. When I
look in my tables backend mdb file there are 2 records with the same
information. I'm sure the frontend created this records. How can i solve
this problem? There are 3 users that connect to the backend file on a
windows 2003 share. My basic form uses subforms, and a search field
combobox created by access. There is one table with clients, on table
with volunteers and a table with appointments wich can be bound to a
client and a volunteer. The appointments subform is always present on
the client and volunteers form.

Thanks in advance,

Nathan
Every table appointments, clients and volunteers have there own primary
keys, and unique index. De information gets duplicated but the
autonumber id is different.
Jul 8 '07 #3
Tom van Stiphout wrote:
On Sun, 08 Jul 2007 00:31:46 +0200, nathan <ur*****@wanadoo.nlwrote:

A good database design prevents illogical duplicates with primary keys
and unique indexes.

-Tom.

>Hello,

Has anyone experienced that records get duplicated by itself. When I
look in my tables backend mdb file there are 2 records with the same
information. I'm sure the frontend created this records. How can i solve
this problem? There are 3 users that connect to the backend file on a
windows 2003 share. My basic form uses subforms, and a search field
combobox created by access. There is one table with clients, on table
with volunteers and a table with appointments wich can be bound to a
client and a volunteer. The appointments subform is always present on
the client and volunteers form.

Thanks in advance,

Nathan
Every table has its own primary key and unique index with autonumbering.
Jul 8 '07 #4
Could it be possible that the *same* information was entered twice?
If the autonumber id is different it means the records were created at
different times.
Are the autonumber id's of the records in question created in a
consecutive fashion (i.e. 554 and 555)? If they are not then I'd be
inclined to think that the same information was entered twice at
different times.
I've seen similar issues like the one you describe and something that
assists greatly in fault finding is to create a field in your table
called 'Updated' were its default value is set to 'Now()' - this way
you could also determine timing of events.
Also, it helps if in the same table you add another field that
identifies who did the change (I use 'Who'). Then you could also link
this to a specific user / computer. This field could either get the
info from the environment variables, something like
'Environ("Username")' or simply a text box that forces the user to
identify his/her-self. This is not exactly fool-proof but for apps up
to 10 users works OK.

HTH - Max

Jul 8 '07 #5
On Sun, 08 Jul 2007 03:20:16 +0200, nathan <ur*****@wanadoo.nlwrote:

My point exactly.
If you don't want the combination of certain field(s) to be
duplicated, you need to use a unique index over those field(s) to
prevent it,.
An autonumber PK doesn't do that.

-Tom.
>Tom van Stiphout wrote:
>On Sun, 08 Jul 2007 00:31:46 +0200, nathan <ur*****@wanadoo.nlwrote:

A good database design prevents illogical duplicates with primary keys
and unique indexes.

-Tom.

>>Hello,

Has anyone experienced that records get duplicated by itself. When I
look in my tables backend mdb file there are 2 records with the same
information. I'm sure the frontend created this records. How can i solve
this problem? There are 3 users that connect to the backend file on a
windows 2003 share. My basic form uses subforms, and a search field
combobox created by access. There is one table with clients, on table
with volunteers and a table with appointments wich can be bound to a
client and a volunteer. The appointments subform is always present on
the client and volunteers form.

Thanks in advance,

Nathan
Every table has its own primary key and unique index with autonumbering.
Jul 8 '07 #6
Max Vit wrote:
Could it be possible that the *same* information was entered twice?
If the autonumber id is different it means the records were created at
different times.
Are the autonumber id's of the records in question created in a
consecutive fashion (i.e. 554 and 555)? If they are not then I'd be
inclined to think that the same information was entered twice at
different times.
I've seen similar issues like the one you describe and something that
assists greatly in fault finding is to create a field in your table
called 'Updated' were its default value is set to 'Now()' - this way
you could also determine timing of events.
Also, it helps if in the same table you add another field that
identifies who did the change (I use 'Who'). Then you could also link
this to a specific user / computer. This field could either get the
info from the environment variables, something like
'Environ("Username")' or simply a text box that forces the user to
identify his/her-self. This is not exactly fool-proof but for apps up
to 10 users works OK.

HTH - Max
Hi Max,

Thanks for your information, i'm not sure but there is a possibility
someone added the information twice, i'm going to add the now field and
log the user who adds a record. I made a query on autoexec to search for
duplicates so i can catch them on the moment they appear.

Greetings,

Nathan
Jul 8 '07 #7
rkc
nathan wrote:
Max Vit wrote:
Thanks for your information, i'm not sure but there is a possibility
someone added the information twice, i'm going to add the now field and
log the user who adds a record. I made a query on autoexec to search for
duplicates so i can catch them on the moment they appear.
Did you read the other replies?

Why don't you just create a unique index on the fields that actually
make the record unique? That way exact duplicates can't be entered.

An autonumber is not really a primary key no matter how many times you
see it called one. A system generated number slapped into a field is
good for nothing but use as a pointer to the row when you want to join
it to row(s) in another table upon retrieval.

If you are never going to use it as a foreign key then having one is
completely pointless.

Jul 9 '07 #8
Tom van Stiphout wrote:
On Sun, 08 Jul 2007 03:20:16 +0200, nathan <ur*****@wanadoo.nlwrote:

My point exactly.
If you don't want the combination of certain field(s) to be
duplicated, you need to use a unique index over those field(s) to
prevent it,.
An autonumber PK doesn't do that.

-Tom.
>Tom van Stiphout wrote:
>>On Sun, 08 Jul 2007 00:31:46 +0200, nathan <ur*****@wanadoo.nlwrote:

A good database design prevents illogical duplicates with primary keys
and unique indexes.

-Tom.
Hello,

Has anyone experienced that records get duplicated by itself. When I
look in my tables backend mdb file there are 2 records with the same
information. I'm sure the frontend created this records. How can i solve
this problem? There are 3 users that connect to the backend file on a
windows 2003 share. My basic form uses subforms, and a search field
combobox created by access. There is one table with clients, on table
with volunteers and a table with appointments wich can be bound to a
client and a volunteer. The appointments subform is always present on
the client and volunteers form.

Thanks in advance,

Nathan
Every table has its own primary key and unique index with autonumbering.
Hi Tom,

I meant that the primary key is autonumbering with index and no
duplicates is on in the properties of the field. Is this what you meant
with unique index. The property Index (no duplicates).

Jul 11 '07 #9
On Wed, 11 Jul 2007 19:20:42 +0200, nathan <ur*****@wanadoo.nlwrote:

No, I meant that if currently you only have a single index (named the
PrimaryKey) on the Autonumber field, you do not have an index that
ensures some other combination of field(s) should also be unique.

Say you have a table tblShippers with ShipperID, ShipperName, and
other fields. You have the PK on the ShipperID autonumber.
But you also want ShipperName to be unique, because that's the
reality: there is only one UPS, one Fedex, etc. To enforce that, you
need to create another index, on the ShipperName field.

-Tom.
>Tom van Stiphout wrote:
>On Sun, 08 Jul 2007 03:20:16 +0200, nathan <ur*****@wanadoo.nlwrote:

My point exactly.
If you don't want the combination of certain field(s) to be
duplicated, you need to use a unique index over those field(s) to
prevent it,.
An autonumber PK doesn't do that.

-Tom.
<clip>
>>
Hi Tom,

I meant that the primary key is autonumbering with index and no
duplicates is on in the properties of the field. Is this what you meant
with unique index. The property Index (no duplicates).
Jul 12 '07 #10
Tom van Stiphout wrote:
On Wed, 11 Jul 2007 19:20:42 +0200, nathan <ur*****@wanadoo.nlwrote:

No, I meant that if currently you only have a single index (named the
PrimaryKey) on the Autonumber field, you do not have an index that
ensures some other combination of field(s) should also be unique.

Say you have a table tblShippers with ShipperID, ShipperName, and
other fields. You have the PK on the ShipperID autonumber.
But you also want ShipperName to be unique, because that's the
reality: there is only one UPS, one Fedex, etc. To enforce that, you
need to create another index, on the ShipperName field.

-Tom.
>Tom van Stiphout wrote:
>>On Sun, 08 Jul 2007 03:20:16 +0200, nathan <ur*****@wanadoo.nlwrote:

My point exactly.
If you don't want the combination of certain field(s) to be
duplicated, you need to use a unique index over those field(s) to
prevent it,.
An autonumber PK doesn't do that.

-Tom.
<clip>
>Hi Tom,

I meant that the primary key is autonumbering with index and no
duplicates is on in the properties of the field. Is this what you meant
with unique index. The property Index (no duplicates).
Hi Tom,

I have a field for the first, mid and last name. I have to combine those
fields to one name and make that a unique index. For so far I know, when
a user enters a new client and its not a unique index i just drops the
record and all other information that was in the record, the user should
be noticed of this. Still It's easily to get two the same clients if one
user adds f.fere and the other one f.a.fere.

Regards,

Nathan
Jul 12 '07 #11
On Thu, 12 Jul 2007 08:41:23 +0200, nathan <ur*****@wanadoo.nlwrote:

That's a situation indexes cannot help with, but other algorithms can.
I use Ratcliff-Obersthelp's SIMIL function for pattern matching. It
would tell me that those two names are very similar, and I would then
ask the user if she really wants to add a new name, or rather use an
existing one. Implementing this correctly requires more than basic
programming skills.

-Tom.

>Tom van Stiphout wrote:
>On Wed, 11 Jul 2007 19:20:42 +0200, nathan <ur*****@wanadoo.nlwrote:

No, I meant that if currently you only have a single index (named the
PrimaryKey) on the Autonumber field, you do not have an index that
ensures some other combination of field(s) should also be unique.

Say you have a table tblShippers with ShipperID, ShipperName, and
other fields. You have the PK on the ShipperID autonumber.
But you also want ShipperName to be unique, because that's the
reality: there is only one UPS, one Fedex, etc. To enforce that, you
need to create another index, on the ShipperName field.

-Tom.
>>Tom van Stiphout wrote:
On Sun, 08 Jul 2007 03:20:16 +0200, nathan <ur*****@wanadoo.nlwrote:

My point exactly.
If you don't want the combination of certain field(s) to be
duplicated, you need to use a unique index over those field(s) to
prevent it,.
An autonumber PK doesn't do that.

-Tom.
<clip>
>>Hi Tom,

I meant that the primary key is autonumbering with index and no
duplicates is on in the properties of the field. Is this what you meant
with unique index. The property Index (no duplicates).
Hi Tom,

I have a field for the first, mid and last name. I have to combine those
fields to one name and make that a unique index. For so far I know, when
a user enters a new client and its not a unique index i just drops the
record and all other information that was in the record, the user should
be noticed of this. Still It's easily to get two the same clients if one
user adds f.fere and the other one f.a.fere.

Regards,

Nathan
Jul 12 '07 #12
>That's a situation indexes cannot help with

100% Agree!

This was exactly the reason why I originally suggested to enable some
sort of audit trail by adding 2 fields to capture (a) who and (b) when
the record was created - even though it does not avoid similar records
being created at least it will provide a clear trail to undesrtand
where the problem is.

Jul 12 '07 #13

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

Similar topics

2
by: Ivan | last post by:
Hi, SQL Server 2000 SP3 Windos 2000 Server SP4 I have a DTS package that imports data from a dBase IV databse with files located in two folders (dBF1 and dBF2). I use a transform data task...
1
by: oasd | last post by:
I'm having difficulty appending data. I have an import macro (using the Transferspreadsheet function) to import data from an excel spreadsheet (located in a USB attached to the pc) to an access...
9
by: HelmutMunich | last post by:
Hello, I am Helmut, my database for multiuser is Frontend/Backend. The turnover file is browsed by VBA for Article numbers to be found in the article table. I use DAO 3.6 lib. The sql Statement...
17
by: Wilfried | last post by:
Hi, I have 5 tables: main data1
8
by: Prabhat | last post by:
Hi All, Can any body help me to use the ADO Recordset in Multiuser Environment for SQL Server DB? How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and I will Display...
14
by: Takeadoe | last post by:
Folks, I at the proverbial fork in the road and before I make a decision, I was hoping maybe I could get some advice. I'm in the process of moving data to Access. I'd like to use Excel for...
5
by: mtgrizzly52 | last post by:
I am running an access 2003 dbase that has been slowly developed for use on a network. (I know, should be sql, but our IT dept won't allow that to happen, so we are stuck) Anyway, because of the...
7
by: =?Utf-8?B?S2F2aXRh?= | last post by:
We have one web application developed in .Net framework 1.1. This site is live on production server since one year and used across world by many users. But only one of the users is facing...
2
by: accessvbanewbie | last post by:
I keep getting an error stating OBJECT VARIABLE OR WITH BLOCK VARIABLE NOT SET. This error just recently began to happen. I am exporting some records to excel into a preformatted report. The...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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
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
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...

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.