Larry,
The code works exactly right if you look at it and use it correctly. It has nothing to do with the name of the form file. It is checking the .Name property of the form. I'm in a rush to get to Seattle right now and I'm not exactly here to write your app for you.
> the procedure you create is they didnt find any form.