This topic is locked

Nulls in Records

2/18/2005 12:05:59 PM
ASPRunnerPro General questions
W
WeB author

I have a serial number field that can be null but cant be duplicated. Can anyone think of a way to set that up so it errors out ONLY when the number is the same. Remember NULL is ok.
THANKS IN ADVANCE

Pfeiffer 2/18/2005

I think you should define this in your database.

For example in Microsoft Access you can define a unique key which ignores Null.
If ASP-Runner now tries to put a duplicate serial-number in your database, you will receive an error FROM database. It's not possible for the user to get this record saved.
Perhaps this will help you.
Greetings
Uwe Pfeiffer

(an ASPRUNNER-User)