MS$DesignersRCretins
Registered User.
- Local time
- Today, 15:37
- Joined
- Jun 6, 2012
- Messages
- 41
I'll make this as simple as possible to reproduce. Create abc.csv as
"","",""
"a","",""
"a","b","c"
Start a new Access database with a table, 3 fields, and for all 3 fields, yes for both Required and for allow zero length string (ZLS). What you've said - corroborated by MS help/web help - is that you won't permit null, but you will permit ZLS. Okay, import.
Access 03 (okay, check others - if you can navigate the hallucinogenic post-2003 design) will only import the third record. The error message is useless but at least alerts you that not all of the .CSV got imported.
In my testing, apparently the ONLY way to get records with "" fields is to set Required = no on those fields, and they get strictly read in as Null. I'm saying, it seems impossible to read them in as a ZLS.
Sure I could set Required=No and run an update query with ZLS and then set Required=Yes but I hope you would agree that that would be a preposterous amount of patchworking.
I can't believe my eyes, and I've Googled the topic silly, but I can't find a single thing on the web about this anomaly. I believe you will get the same results as I, which is inconsistent with the description of Required.
My only theory is that Required=True only works for direct (i.e. keyboard) user input to a field, and is useless for importing? Really???
The first thing I wonder is if others duplicate my results...
"","",""
"a","",""
"a","b","c"
Start a new Access database with a table, 3 fields, and for all 3 fields, yes for both Required and for allow zero length string (ZLS). What you've said - corroborated by MS help/web help - is that you won't permit null, but you will permit ZLS. Okay, import.
Access 03 (okay, check others - if you can navigate the hallucinogenic post-2003 design) will only import the third record. The error message is useless but at least alerts you that not all of the .CSV got imported.
In my testing, apparently the ONLY way to get records with "" fields is to set Required = no on those fields, and they get strictly read in as Null. I'm saying, it seems impossible to read them in as a ZLS.
Sure I could set Required=No and run an update query with ZLS and then set Required=Yes but I hope you would agree that that would be a preposterous amount of patchworking.
I can't believe my eyes, and I've Googled the topic silly, but I can't find a single thing on the web about this anomaly. I believe you will get the same results as I, which is inconsistent with the description of Required.
My only theory is that Required=True only works for direct (i.e. keyboard) user input to a field, and is useless for importing? Really???
The first thing I wonder is if others duplicate my results...
Last edited: