Hi WhoKnew? and welcome.
As Crohns11 has suggested there is a powder called Questran (Cholestyramine) available on prescription. It is also available in tablet form called Welchol. This does work well for many sufferers of BAM.
Others use medication like Imodium and Lomotil, they are both tablets, but these types of meds normally aren’t recommended as long term solutions if using on a daily basis.
My own children have issues with BAM following ileal resection. My daughter tried Questran and it worked well but she didn’t like the texture. She was 14 at the time so this may have played a part in how she handled taking it. Some time later she did happen upon natural psyllium husks, the type you by in the supermarket, and this works very well both for her and my son. Psyllium is the main ingredient of products such as Metamucil and this can be used as well. It does take some fiddling to hit on the right amount and when using this type product and Questran there are time restrictions as to when you can take other medication. Both Questran and psyllium work by binding to the bile salts in the ileum. This then bulks up the stool as it inhibits the bile salts from being dumped into the large bowel where left unhindered they draw water back into the bowel causing loose watery motions.
Dusty.