A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Want to eliminate Duplicate Values <> Null



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2004, 12:41 AM
Ben
external usenet poster
 
Posts: n/a
Default Want to eliminate Duplicate Values <> Null

I know how to make a column prevent duplicate values with
an index; however, I have a column where many values are
null which is OK, but I can't use an index to prevent
duplicate entries because it will only allow me one
record with the null column value.

Does anyone know of a work around where I can root those
out and at least pop up a warning to the person entering
the record that the value exists in another record?

Thanks in advance,

Ben
  #2  
Old July 8th, 2004, 01:01 AM
John Vinson
external usenet poster
 
Posts: n/a
Default Want to eliminate Duplicate Values <> Null

On Wed, 7 Jul 2004 16:41:37 -0700, "Ben"
wrote:

I know how to make a column prevent duplicate values with
an index; however, I have a column where many values are
null which is OK, but I can't use an index to prevent
duplicate entries because it will only allow me one
record with the null column value.


Set the IgnoreNulls property of the Index (which cannot be a Primary
Key index, since PK's cannot contain null) to True.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate Values in Queries bdehning General Discussion 8 July 18th, 2004 04:02 AM
Access inconsistencies Hoopie Running & Setting Up Queries 2 June 15th, 2004 10:53 AM
Null values Jean Paul Gevaert Mailmerge 3 June 7th, 2004 03:17 PM
average, eliminating zero values Chris Worksheet Functions 6 May 14th, 2004 11:36 PM
Blanks vs. Null values in Functions Worksheet Functions 1 October 17th, 2003 12:02 PM


All times are GMT +1. The time now is 03:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.