Midazolam Tablets / Midazolam is also given to produce amnesia (loss of memory) so that the patient will not remember any discomfort.