Solved

Can't have empty fields to update records?

Posted on 2001-08-03
3
173 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 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