?
Solved

Can't have empty fields to update records?

Posted on 2001-08-03
3
Medium Priority
?
175 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 200 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

777 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