all groups > sql server programming > october 2005 >
You're in the

sql server programming

group:

Check for Duplicate values in Access



RE: Check for Duplicate values in Access ML
10/22/2005 2:31:04 PM
sql server programming: Please, post DDL, sample data, and specify expected results.

Are you trying to report duplicate values, prevent them from being inserted
or what?


RE: Check for Duplicate values in Access Fraser Hetherington
10/22/2005 2:45:40 PM
Hi, sorry for my ignorance but I'm quite new at databases what is DDL?
I'm trying to tell the user that a job number is already created if they
enter a duplicate number in the form that is already held in another
table, so it will display a message box telling them this, thanks

Check for Duplicate values in Access Fraser
10/22/2005 10:07:16 PM
Hi, I'm creating a database that needs to check a value in a text field =
=

called JobCreate in a form called frmJobCreated against a table called =

tblJobCreated which has a whole list of job numbers in a field called =

JobNo, then come back with a message telling the user if there is a =

RE: Check for Duplicate values in Access R.D
10/23/2005 12:24:02 AM
Hi
First of all, This is not the right forum because there is a dedicated forum
for access.
well. Use primary key (SOME THING LIKE SELECT COLUMN WHILE DESIGININGG AND
RIGHT CLICK SELECT PRIMARY KEY) in access on the column so that it will
prevent and throws an error. you can customise your error using VBA.

You have to use VBA because you are not using SQL SERVER 2000

--
Regards
R.D
--Knowledge gets doubled when shared


[quoted text, click to view]
RE: Check for Duplicate values in Access ML
10/23/2005 4:38:02 AM
Why are you making your users think of unique values? Why would any user care
what number his job is given?

Use a column constraint and design a function that will automatically
generate unique values for the job column. You sound like a crappy ISP -
designed to serve millions of users, yet each of them must create his/her own
*globally unique* username in order to create a valid account. A total waste
of time.


Re: Check for Duplicate values in Access Chris2
10/23/2005 8:12:18 AM

[quoted text, click to view]
Hi, I'm creating a database that needs to check a value in a text
field
called JobCreate in a form called frmJobCreated against a table called
tblJobCreated which has a whole list of job numbers in a field called
JobNo, then come back with a message telling the user if there is a
duplicate value...any help would be greatly appreciated,,thanks,
Fraser

Fraser,

Pleaes try reposting your above message in *one* of the following
newsgroups:

comp.databases.ms-access
microsoft.public.access.forms
microsoft.public.access.formscoding


Sincerely,

Chris O.

AddThis Social Bookmark Button