Vowel shifts have long been common between differetn Polish dialects, eg Krowiarz and Krowiorz. A fancy curclicued "e" in Kodecki could have been taken by someone as an "a" so it got copied somewhere down the line as Kodacki. The fact that there are Kodeckis in Poland but no Kodackis lends support to such a hypothesis.