>yes begin trans and for i = 1 to 20 should be on separate lines. Typo error
OK, and correcting this, do you still get an error? If not, you may send your database and the program that doesn't work - again - this time to the address I will send you by private message. I can't access my other e-mail now, because of a quarantine. A very sophisticated new virus, that spreads both by e-mail and by network-shared folders.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)