Yes, I have a button on the form which closes everything.
The issue is that I have code in the form_current which requeries a couple listboxes based on what's on the form. When you exit the database from the form, it runs through the code but the form is closed so it's prompting for the fields on the form.
I tried saying if the value is null not to do it but it doesn't work. If I add a break in the code on the IF statement, it brings up the code but never breaks and does close the database without issues.