PC Review


Reply
Thread Tools Rate Thread

change mouse to busy (clocking)

 
 
James
Guest
Posts: n/a
 
      22nd Jun 2006
on a form I have a button that runs a module generating an xml file. It
takes about 5 seconds. During that time I was hoping to change the
mouse arrow to busy, the clocking thing... sorry about my terminology.
How can I do that? Thanks.

 
Reply With Quote
 
 
 
 
Wolfgang Kais
Guest
Posts: n/a
 
      22nd Jun 2006
Hello James.

James wrote:
> on a form I have a button that runs a module generating an xml file.
> It takes about 5 seconds. During that time I was hoping to change
> the mouse arrow to busy, the clocking thing... sorry about my
> terminology.
> How can I do that? Thanks.


Use the Hourglass method of the DoCmd object to turn the
hourglass on (true) or off (false):

DoCmd.Hourglass True
' code to generate xml file
DoCmd.Hourglass False

--
Regards,
Wolfgang


 
Reply With Quote
 
James
Guest
Posts: n/a
 
      22nd Jun 2006
Thanks alot!
Wolfgang Kais wrote:
> Hello James.
>
> James wrote:
> > on a form I have a button that runs a module generating an xml file.
> > It takes about 5 seconds. During that time I was hoping to change
> > the mouse arrow to busy, the clocking thing... sorry about my
> > terminology.
> > How can I do that? Thanks.

>
> Use the Hourglass method of the DoCmd object to turn the
> hourglass on (true) or off (false):
>
> DoCmd.Hourglass True
> ' code to generate xml file
> DoCmd.Hourglass False
>
> --
> Regards,
> Wolfgang


 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a
 
      27th Jun 2006
You may also want to include a "Do Events" command in the loop. Without that
sometimes the process will tie up the machine to where nothing else works
anywhere until it is finished. Including that command allows the machine to
check for "other things" and need taken care of as it is doing the loop.

It may not be a big deal with it lasting only 5 seconds, but it is something
to keep in mind.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com


"James" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks alot!
> Wolfgang Kais wrote:
> > Hello James.
> >
> > James wrote:
> > > on a form I have a button that runs a module generating an xml file.
> > > It takes about 5 seconds. During that time I was hoping to change
> > > the mouse arrow to busy, the clocking thing... sorry about my
> > > terminology.
> > > How can I do that? Thanks.

> >
> > Use the Hourglass method of the DoCmd object to turn the
> > hourglass on (true) or off (false):
> >
> > DoCmd.Hourglass True
> > ' code to generate xml file
> > DoCmd.Hourglass False
> >
> > --
> > Regards,
> > Wolfgang

>



 
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
how to change mouse pointer to busy =?Utf-8?B?YW1qYWQ=?= Microsoft Access VBA Modules 2 22nd May 2006 05:02 PM
how to change busy/free time default from busy to free in calenda =?Utf-8?B?RHIuIEQ=?= Microsoft Outlook Calendar 0 26th Jan 2006 04:30 AM
Busy Mouse Burt Windows XP Hardware 2 3rd Oct 2004 04:31 AM
how to change mouse cursor to busy state =?Utf-8?B?YWxpaw==?= Microsoft C# .NET 2 12th Mar 2004 02:44 AM
Change mouse to "busy" pointer when I bring up a form Scott Lyon Microsoft Excel Programming 4 5th Sep 2003 03:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:44 PM.