Does anyone have a good recipe for tablet?

I really need to know the method as well as the ingredients.

I have tried making tablet on a few occasions and it never turns out the same. First the tablet set so hard it almost broke my teeth, the next time it didn't even set. Can anyone help me?