Our book will cover everything you need :
http://www.oaklandspigs.co.uk/perfect-pigs-book/As for worming, yes you can worm a couple of weeks before farrowing, but if you are regularly worming or don't have a worm problem, then there is little point. We don't worm before farrowing.
You should worm the weaners at weaning.
As for Ery, this should NOT be given during the last two weeks of pregnancy, and is the bit I suspect the vet needed to look up. And not required as you regularly vaccinate in any case.
If you are vaccinating against Ery, then you should follow manufacturer's datasheet. If it is say Porcillus Ery then it is given from around 6 weeks of age, followed by a second 4 weeks later, then 6 monthly for stock being retained.