Solved

How to make a MS Access field 'Allow Zero Length' = true

Posted on 2004-09-10
6
338 Views
Last Modified: 2010-04-05
How to make a MS Access field 'Allow Zero Length' = true from delphi
in CREATE database dunction?
0
Comment
Question by:djuzoran
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12025222
You mean a Text field?
If you do not specify nothing it is intended as it can accept zero length, otherwise it must be declared as Not Null

for example:

create table MyTable(MyField Text(10), //accept zero length
                               MySecondField(19) not null, //value is required
                               MyThirdField Integer);

0
 

Author Comment

by:djuzoran
ID: 12025233
So
MyField Text(10)

is not the same as

MyField Varchar(10) ?

0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12025267
Yes it's the same, btw forgot mi last comment, it's about required property, not zero length, sorry
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:djuzoran
ID: 12025293
So what should i write for nullable and zero length column?

0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 125 total points
ID: 12025329
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12025346
Well i was looking at it at all but look at here also http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3BQ217156
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 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