As for causes/prevention, the only things that have been solidly identified are the folic acid link, and the genetic issue in the mother that prevents absorption.
Other issues are still being tossed around though.... just as RoseInTheRain's experience, if genetic testing on bub is done, some small genetic mutations have popped up in anencephalic bubs that may or may not actually be causal. AFAIK, there's been no real similarity identified between these mutations.... so they can't say with any certainty if there really is a genetic cause.
The woman in Australia I mentioned is literally the only person I came across who's had 2 bubs affected. Her sister also had one affected, which lead to their discovery that they both carried the mutation preventing FA absorption. Her story is here:
www.prenatalpartnersforlife.org
.. another prolife site, but just in case you'd like to read her story. Her bubs' names are Benedict and Charlotte. And remember that she wasn't taking FA at the time of her second affected pregnancy.
There's been some minimal research into chemical causation (things like pesticides, cleaning solvents etc) but AFAIK it hasn't yet amounted to anything. A few people have researched 'clusters' of anen. bubs in various parts of the world, hypothesizing that pollution of some sort might be causal, but nothing solid regarding which actual pollutants might be the cause. Another theory for a while was that a toxin called aflatoxin might be involved- that's a naturally occurring toxin produced by fungus, that was purportedly stockpiled by Iraq under Hussein for use as a biological chemical weapon... and there was a cluster of anen. bubs in Iraq at the time. But again the research didn't amount to anything conclusive, and your chances of being heavily exposed to aflatoxin are pretty damn slim! Also it doesn't explain all the other anen. bubs around the world.
So all you can do is chow down on FA, and try to take comfort in the (very high) odds that it won't happen to you again.
Big hug to everyone who's faced this... it's a terrible thing to happen but almost certainly a one-off xx