preventing duplicate record entry
- From: pcnorb@xxxxxxxxx
- Date: 11 Sep 2006 05:44:26 -0700
I have a form, pulling data from a Products table that has many fields
that do lookups to other tables. These are in a one-to-many
relationship to a pk in each of said tables.
I'd like to be able to compare the data on a BeforeUpdate event to be
sure that this data is not duplicated.
Here is the structure:
Products 8-1 Frames
8-1 Color
8-1 Size
8-1 Branch
What I'd like to do:
Sudo-code: If Frames.FrameID AND Color.ColorID AND Size.SizeID AND
Branch.BranchID
Are found in any other recordset THEN
MsgBox "Duplicate Record"
Exit Sub
End If
There are only about 4k records so far in the products table, but I'm
not sure if this will get slower doing it in code as data grows, and
I'm no SQL coder...
Thanks in advance.
.
- Follow-Ups:
- Re: preventing duplicate record entry
- From: Tom van Stiphout
- Re: preventing duplicate record entry
- Prev by Date: Re: PrintLines without border in last record
- Next by Date: MDE Licensing
- Previous by thread: Is there any way to find out the width of a closed report programatically?
- Next by thread: Re: preventing duplicate record entry
- Index(es):
Relevant Pages
|