Hello,
I have an auto-generated report in .xls format that I import daily into my 2010 database. In some rare circumstances there is data missing from fields (empty cells) which, when imported, are Zero Length Strings in Access. I have everything in my database set to disallow ZLS since I use Null as an indicator of empty values (see here).
However, when I import the Excel file the entire records that contain at least one ZLS are not imported. This is expected.
e.g. if I imported the table below, only the first record will be imported.
I instead would like these records to be imported and the ZLS replaced with Null. So I will have a temporary table that allows ZLS, then run an UPDATE query to change all "" to Null.
I have 31 fields that are being imported and ZLS can potentially appear in most of them. Is there an easy way to replace the same values across the entire table? Previously I have had to run a separate query for each field; luckily the most I've had to do is 3.
Thanks
I have an auto-generated report in .xls format that I import daily into my 2010 database. In some rare circumstances there is data missing from fields (empty cells) which, when imported, are Zero Length Strings in Access. I have everything in my database set to disallow ZLS since I use Null as an indicator of empty values (see here).
However, when I import the Excel file the entire records that contain at least one ZLS are not imported. This is expected.
e.g. if I imported the table below, only the first record will be imported.
Code:
Field1 Field2 Field3
Name1 Place1 Weight1
Name2 Place2
Name3 Weight3
I have 31 fields that are being imported and ZLS can potentially appear in most of them. Is there an easy way to replace the same values across the entire table? Previously I have had to run a separate query for each field; luckily the most I've had to do is 3.
Thanks