Form-Screen blinking during update text-box

E

Evgueni Zoldin

Hi, ALL!

During the long process I would like to update report text in multiline-text
box to show to customer the status of performing. When I change the content
of the textbox by append new report-text at the end, I try to scroll to the
end of tex by the following:

Me.txtResult.SelStart = Len(Me.txtResult.Value)
Me.txtResult.SelLength = 0

(focus is already set into the text-box). If the updates occur enough often
then screen (namely the form) is blinking absolutely indigestibly. Will be
appriciable for any advice.

Thanks
 
S

StCyrM

Hi

Try setting Echo to False. This will freeze the screen while the updates are
done.

Maurice
 
R

Richard

Hello

I tried it but the whole screen turns blank. Do you put in after the code or
before?

Thanks again

Richard
 
S

StCyrM

Hi Richard

You would place the code before you start your update:

DoCmd.Echo False, ""

...and once you are done the update(s), turn Echo back on:

DoCmd.Echo True, ""

Maurice
 

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