Hi, I am relatively new to Access. I imported a very large csv file into a table. One field relates to phone numbers. Some records have 2 phone numbers others have only 1 phone number. Where there are 2 numbers they are split by a ":" Here is an example
PhoneNos 089 4070198 087 3983530 089 4843365 086 1027601 083 1987275 087 3377219:+44 7909 947901 087 3899103 086 1047498 089 9616322 085 7799250:+44 7563 076923 00894 962918:00894 962918
I want to split the phone field into 2 fields. I tried using Left() and Mid(). However if the record has only 1 phone number I get an error message. Here is an example of the result
FirstPhone MidPhone #Error 089 4070198 #Error 087 3983530 #Error 089 4843365 #Error 086 1027601 #Error 083 1987275 087 3377219 +44 7909 947901 #Error 087 3899103 #Error 086 1047498 #Error 089 9616322 085 7799250 +44 7563 076923 00894 962918 00894 962918
This is the way I would like to see the data returned
FirstPhone MidPhone 089 4070198 087 3983530
089 4843365 086 1027601 083 1987275 087 3377219 +44 7909 947901 087 3899103 086 1047498 089 9616322 085 7799250 +44 7563 076923 00894 962918
I would appreciate any help thank you in advance