ok after doing a steping though the code it goes though all the code first the code for the 0 key then the format code then it finishes off the 0 code then it goes back to the pay sub on the frist form finshes all the lines of that. then after that that is when the form closes.

if that makes sense?

yes VB 03 does have a defalt button setting.