Quote:
Originally Posted by Jollywg
I apologize for not correctly organizing my post...its been a while.
Fair enough. That makes sense.
Quote:
Originally Posted by Jollywg
here is how i am closing it.
- DoCmd.OpenForm "SwitchBoard" (this is actually minimized)
-
DoCmd.Close acForm, "Dond"
This is called when the user clicks a button
You don't include the wrappings so it's impossible to tell which event it is within. I suspect (from what you say) that it is within the Click event procedure of a CommandButton. It would be nice to be sure, especially as I've just posted explaining why closing forms code should never be held there.
Quote:
Originally Posted by Jollywg
To answer your question NeoPa i am wanting to stop the audio file after it has played and when the form closes.
Unfortunately, that doesn't actually answer my question.
Here it is again :
Are you asking how to stop your sound from continuing, or are you asking how the code can run when the form is closed?
If that's not clear, then I'm asking if you need to know how to code it to stop the noise, or where you would need to put that code (assuming you already have it) to ensure it's run when the form is closed.