Hi,
I have a very large and complicated form with several sub forms which does what I want mostly.
If I close it with a button I have put on there which runs the docmd.close action it's fine. However if I close the form using the cross top right I get the message "no current record". Once you have clicked yes the form closes, but this is obviously not ideal. I could of course disable the button, but does anyone know where I could look to find the problem.
The message pops up before the unload or close method is fired on the main form or any of the subforms, I can't seem to break the code before the message appears to step through it and find the error.
Any pointers would be gratefully received.
Sue
I have a very large and complicated form with several sub forms which does what I want mostly.
If I close it with a button I have put on there which runs the docmd.close action it's fine. However if I close the form using the cross top right I get the message "no current record". Once you have clicked yes the form closes, but this is obviously not ideal. I could of course disable the button, but does anyone know where I could look to find the problem.
The message pops up before the unload or close method is fired on the main form or any of the subforms, I can't seem to break the code before the message appears to step through it and find the error.
Any pointers would be gratefully received.
Sue