New AChE inhibitors of pyrazinium and pyridinium type were prepared, and the relationships between structure and inhibiting activity were determined