Form on screen after closed

G

Guest

I have a form that pops up as a Dialog to halt the code for a user to update
some items before it goes out into Excel.
After I click the button to close the form the code takes off and starts
exporting to Excel, but the input form stays up there but slightly faded...
I would like to have it complete close before I move onto the next step to
make this look cleaner to the user. How do I make the form completely close
before I move on?

This is the code that calls said form.

If DCount("Model", "qryOptionBlanks") > 0 Then
DoCmd.OpenQuery "qryAPPENDBlankOptionDesc"
DoCmd.Hourglass (False)
DoCmd.OpenForm "frmAddOptionDesc", , , , , acDialog
DoCmd.Hourglass (True)
DoCmd.OpenQuery "qryUPDATEOptionDesc"
End If

Call SendtoExcel
 
G

Guest

If DCount("Model", "qryOptionBlanks") > 0 Then
DoCmd.OpenQuery "qryAPPENDBlankOptionDesc"
DoCmd.Hourglass (False)
DoCmd.OpenForm "frmAddOptionDesc", , , , , acDialog
DoCmd.Hourglass (True)

' This frees some time for screen refresh maybe this helps

DoEvents


DoCmd.OpenQuery "qryUPDATEOptionDesc"
End If

Call SendtoExcel


- Raoul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top