Hi guys,
I have a table in excel with the following data
ACCNO Address1 Address2 Address3 Address4 Address5 Postcode
I import it into a table called address which is fine. I then go to put it into another table (customer_register) using an append query but it kicks up a fuss saying it cant do it because of a data validation rule.
I’ve worked out this is because not everybody in the table in excel has full data, for example some people only have three address lines and when appending it to the new table it picks these up as blanks ("") rather than null values (is null) and refuses to do it.
My question is, is there any way of replacing these blank cells at import level rather than writing queries that will remove each one? Am I importing wrong? Something wrong with my spec? I’m now faced with writing six queries to ensure all blanks are removed from address1,2,3,4,5 and post-code but I’d like a better way.
I have a table in excel with the following data
ACCNO Address1 Address2 Address3 Address4 Address5 Postcode
I import it into a table called address which is fine. I then go to put it into another table (customer_register) using an append query but it kicks up a fuss saying it cant do it because of a data validation rule.
I’ve worked out this is because not everybody in the table in excel has full data, for example some people only have three address lines and when appending it to the new table it picks these up as blanks ("") rather than null values (is null) and refuses to do it.
My question is, is there any way of replacing these blank cells at import level rather than writing queries that will remove each one? Am I importing wrong? Something wrong with my spec? I’m now faced with writing six queries to ensure all blanks are removed from address1,2,3,4,5 and post-code but I’d like a better way.