E
EK
Access 2000 will allow me to insert a blank into a field with the
Allow zero length property set to no. Here is what I did.
Created a table in access with SQL. CREATE TABLE TestTable (String1
char(4),String2 char(3),String3 char(40),String4 char(13))
Went to the design view of the table in Access and verified that the
"Allow zero length" property is "no".
Created an insert query like this: INSERT INTO TestTable ( String1,
String2, String3, String4 ) SELECT "Test2", '' , '' , ''
Ran the query and I will get a row of data in the testtable.
If I go into the design of the table and change the length of field
"string4" from 13 to 15 and save my changes. If I re-run the insert
query above I will get an access error "microsoft Access can't append
all the records in the append query" due to a validation rule
violation.
What is going on? Is my create table incorrect? I need to create the
table with SQL (external app actual creates the table, but problem can
be reproduce in Access)
Thanks in advance,
Allow zero length property set to no. Here is what I did.
Created a table in access with SQL. CREATE TABLE TestTable (String1
char(4),String2 char(3),String3 char(40),String4 char(13))
Went to the design view of the table in Access and verified that the
"Allow zero length" property is "no".
Created an insert query like this: INSERT INTO TestTable ( String1,
String2, String3, String4 ) SELECT "Test2", '' , '' , ''
Ran the query and I will get a row of data in the testtable.
If I go into the design of the table and change the length of field
"string4" from 13 to 15 and save my changes. If I re-run the insert
query above I will get an access error "microsoft Access can't append
all the records in the append query" due to a validation rule
violation.
What is going on? Is my create table incorrect? I need to create the
table with SQL (external app actual creates the table, but problem can
be reproduce in Access)
Thanks in advance,