Board index » delphi » field cannot be zero length string

field cannot be zero length string

I am using ttable to access a MS access 97 database on a Novel server.
When editing a record, if the user clears a field ( deletes the data ) ,
then attempts to save the record, the program gets a 'general sql error
- field cannot be zero length string'.  If you insert a new record,
fields can be null, why not in update?

Can I trap this, and fix it?

Terry

 

Re:field cannot be zero length string


Well, I found the solution.  Being a new user of Access 97... I changed the
field property 'Allow Zero Length' to YES and the problem was fixed.
Quote
FTSoft wrote:
> I am using ttable to access a MS access 97 database on a Novel server.
> When editing a record, if the user clears a field ( deletes the data ) ,
> then attempts to save the record, the program gets a 'general sql error
> - field cannot be zero length string'.  If you insert a new record,
> fields can be null, why not in update?

> Can I trap this, and fix it?

> Terry

Other Threads