Cannot hold the screen image

A

Arturo

I need some help with my processes. Here is an example of code
I am using.

Application.Echo False, ""
DoCmd.SetWarnings False
DoCmd.Hourglass True
DoCmd.Close acForm, "frmNEWEMPLOYEE"
' qryCONTACTSFAMILYSAME
DoCmd.OpenQuery "qryCONTACTSFAMILYSAME", acViewNormal, acEdit
DoCmd.OpenForm "frmNEWEMPLOYEE", acNormal, "", "", , acNormal
Application.Echo True
DoCmd.Hourglass False

My problem is this. The form disappears, I get a white screen, a lot of
flipping
takes place. I thought the screen would hold the image and not flicker.
What is wrong with this?

Thank you
 
M

Maurice

What do you mean by hold the image? I understand the point you are making by
using the application.echo to prevent the flickering.

Try replacing the first line by:
application.echo false

so no comma and no double quotes.

Also place the docmd.hourglass true befor the application.echo true line.

see if that helps...
 

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