Re: Timer function interrupted



Even if it doesn't, you're only asking for trouble using SendKeys.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Mark CHP IMD" <MarkCHPIMD@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:15030D4B-720D-4AFF-A0B6-3DC10D4815BD@xxxxxxxxxxxxxxxx
I have a pop up form that I'm trying to use as a progress meter that works
off the forms timer property. The following code works great when there is
no
other code working on another form, for example, DoCmd.RunSQL. If I put
the
objects on the main form I still find it interrupted by other code.
Does running SQL stop the timer function on a form as apparently it seems
to?

If MForm.[MeterBase].Tag = "Forward" Then
MForm.[Meter].Width = MForm.[Meter].Width + 0.01 * 1440
If MForm.[Meter].Width > 1.975 * 1440 Then MForm.[MeterBase].Tag =
"Backward"
Else
MForm.[Meter].Width = MForm.[Meter].Width - 0.01 * 1440
If MForm.[Meter].Width < 0.025 * 1440 Then MForm.[MeterBase].Tag =
"Forward"
End If
If Not MTask Then DoCmd.Close acForm, MForm.Name: SendKeys "{F11}",
True

Thanks for your input.
Mark



.



Relevant Pages

  • Re: RUNTIME Problems when form code (apparently) calls on Office Assis
    ... SendKeys is seldom a good idea. ... Doug Steele, Microsoft Access MVP ... > is because they call on the Office Assistant. ... > properties,correctly calling on the context specific part of the .chm help ...
    (microsoft.public.access.formscoding)
  • Re: Message Box (Getting 2 boxes)
    ... I believe you need the Undo instruction in the NotInList event, ... Doug Steele, Microsoft Access MVP ... > You are absolutely correct I don't want to use Sendkeys. ... >> Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.developers.toolkitode)
  • Re: ctrl + p - printing reports
    ... listed a bunch of key combinations, and had a link to the SendKeys syntax (% ... is how you do it for SendKeys). ... >> Doug Steele, Microsoft Access MVP ... >> (no e-mails, please!) ...
    (microsoft.public.access.reports)
  • Re: Sendkeys on Vista
    ... What are you trying to do with the sendkeys? ... Candia Computer Consulting. ... Microsoft Access MVP ... to resolve numlock issue) but i didnt resolve. ...
    (microsoft.public.access.formscoding)
  • Re: Send Keys??
    ... SendKeys, much less one where I had to. ... One reason being that the keystroke is processed by the application with ... Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.gettingstarted)