Index or primary key cannot contain a Null value

Index or primary key cannot contain a Null value

Post by David Smit » Tue, 19 Jul 2005 05:04:18


This seems like something simple, but for some reason can't figure it out. I
have a page that inserts a record into the database, but I keep getting this
error no matter what. I follow the procedures according to the docs, but it
still gives me this error. Funny thing is, I've done this before, but it's
been a while, so I must be rusty. Help!
 
 
 

Index or primary key cannot contain a Null value

Post by Pete » Tue, 19 Jul 2005 08:00:22


Probably you're using a numerical primary key, but haven't set it to
Auto-Increment

Pete.
--
Peter Connolly
http://www.yqcomputer.com/
Derby
UK
Skype ID: acutecomputing