PC Review


Reply
Thread Tools Rate Thread

Application.Echo or DoCmd.Echo in a Runtime Database

 
 
=?Utf-8?B?cmJt?=
Guest
Posts: n/a
 
      22nd Jan 2004
I am having trouble with a runtime database that I developed. Quite often the database crashes (stops or closes) giving me the impression that it is ties to an Application.Echo False / True code. Is Application.Echo or DoCmd.Echo better to use with Access 97 and in a runtime environment?

Thanks for your help.
 
Reply With Quote
 
 
 
 
Jonathan Parminter
Guest
Posts: n/a
 
      23rd Jan 2004

>-----Original Message-----
>I am having trouble with a runtime database that I

developed. Quite often the database crashes (stops or
closes) giving me the impression that it is ties to an
Application.Echo False / True code. Is Application.Echo
or DoCmd.Echo better to use with Access 97 and in a
runtime environment?
>
>Thanks for your help.
>.

Hi rbm, when using either .echo you must switch back on.
That is each docmd.echo EchoOn:=false must later be
followed with a docmd.echo EchoOn:=true. To acoid a blank
screen have the echoon:=true as part of error handling so
that should an error arise the screen view will still
update.

for example

private sub DoIt()
on error goto error_handler
docmd.echo echoon:=false

' do it

DoIt_Exit:
on error goto 0
docmd.echoOn:=true
' any other cleanup code
exit sub

Error_Handler:
msgbox "Error: " Err.description,,"DoIt"
' ensure process exit code
Resume DoIt_Exit

End Sub

Luck
Jonathan
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NF325-A7 Sound problem: sounds like an echo ,,echo...echo makes me crazy...crazy...crazy...help...help...help David Sontag DIY PC 17 30th Nov 2007 06:45 AM
Echo multiple messages separated by new line thorugh "echo" command Vijay Jain Windows XP General 1 12th Dec 2006 09:11 PM
applicaton.echo / docmd.echo screen still pulsing - Why? Rick A Microsoft Access Form Coding 1 30th Mar 2006 04:01 AM
DoCmd.Echo True/False =?Utf-8?B?SmFjIFRyZW1ibGF5?= Microsoft Access VBA Modules 4 8th Dec 2005 12:47 AM
DoCmd.Echo False or Application.Echo False =?Utf-8?B?cmJt?= Microsoft Access Form Coding 3 28th Jan 2004 02:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 AM.