Solved

Can't have empty fields to update records?

Posted on 2001-08-03
3
171 Views
Last Modified: 2012-08-14
This question is a continuation to these two topics:

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=asp&qid=20162452

and

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20161841

and

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20162639

If I leave some fields blank it gives this error message:

Microsoft JET Database Engine error '80004005'

Field 'students.AptNumber' cannot be a zero-length string

The same applies to all fields.
How do I fix that?



0
Comment
Question by:amira123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 50 total points
ID: 6350353
look at the field definition in the database.  ensure that the AllowZeroLength property is set to 'Yes'.
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6350393
Or validate the field prior to the update if you can't mod the dB, and insert a " ", or a "vbCr" in the field, anything that the field recognizes as notNull.
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6350800
AzraSound is correct. Though your that field may indicate that null values is accepted, you do also need to set "AllowZeroLength" to yes/true.

hongjun
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP Focus problem 3 72
ASP/VB email question 4 63
Call a function within the ASP code 4 26
Time comparison asp 1 22
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question