473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Timer Event Won't Fire In Access 2000

I have a database that was written in Access 2003 using the Access
2000 file format. When I run the mdb in Access 2003 everything works
fine. If I run it in Access 2000 the timer event won't fire on my
forms. This is crazy. Has anyone seen this behaviour?

Any help appreciated.
Nov 13 '05 #1
10 3294
Hi Wayne.

I'm not aware of a specific problem with the Timer event. It sounds more
like some kind of corruption, probably related to the fact that the A2000
uses a different binary (compiled code) than A2003.

Using A2000, make sure the boxes are unchecked under:
Tools | Options | General | Name AutoCorrect
Then compact the database:
Tools | Database Utilities |Compact
Then decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
Compact again.
Check that the code compiles.
See if the Timer event runs now.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Wayne Aprato" <cq*******@volcanomail.com> wrote in message
news:4d*************************@posting.google.co m...
I have a database that was written in Access 2003 using the Access
2000 file format. When I run the mdb in Access 2003 everything works
fine. If I run it in Access 2000 the timer event won't fire on my
forms. This is crazy. Has anyone seen this behaviour?

Any help appreciated.

Nov 13 '05 #2
Wayne Aprato wrote:
I have a database that was written in Access 2003 using the Access
2000 file format. When I run the mdb in Access 2003 everything works
fine. If I run it in Access 2000 the timer event won't fire on my
forms. This is crazy. Has anyone seen this behaviour?

Any help appreciated.


What is the timer interval? Are you resetting it somewhere to zero?
Nov 13 '05 #3
Thanks for the reply Allen and Salad but the problem still remains
after trying your suggestions. Further to my previous post, I've
ascertained that it isn't the timer event as I first thought. The
forms that are giving me problems are similar. They are based on
queries. The criteria of one of the query fields is a drop down list
on the form. When a value is chosen from the list the form is
filtered on that value. The default value of the list is "*". I
requery the form on the timer event 100ms after it is opened. If this
isn't done the values don't show because the of the way the query uses
a field on the form as one of it's criteria. The failure that is
occurring makes the form open and not show any records, when it should
be showing them all.

What I've found, since my last post is that the database works fine on
an Access 2000 installation that does not have any service packs
installed - I've tried this on a clean install on another machine.
The problems appear when the installation of Access 2000 has service
release 1a or later applied. I tried this by installing service pack
1a - problem appeared - uninstalled Access 2000 and reinstalled
without the service pack - problem disappeared. As stated earlier the
database runs fine on Access 2003.

I guess the moral to the story is if you want an Access 2000 database,
write it in Access 2000, not Access 2003, even though the Access 2000
file format is used by default.

If you have any other ideas as to what is causing this bizarre
behaviour, I'd be grateful to hear them.

Regards.
Nov 13 '05 #4

"Wayne Aprato" <cq*******@volcanomail.com> wrote in message
news:4d**************************@posting.google.c om...
... When a value is chosen from the list the form is
filtered on that value. The default value of the list is "*". I
requery the form on the timer event 100ms after it is opened...


You should not use a timer event for this. Instead, use an AfterUpdate event
for the list of values that the user selects. This is more efficient since
the filter operation is applied only when needed, i.e. after the user
changes selection. Then you can avoid the overhead of the timer event as
well as the unpleasant side effects of timer events in general.

- Steve

Nov 13 '05 #5
Stephen K. Young wrote:
Then you can avoid the overhead of the timer event as
well as the unpleasant side effects of timer events in general.


Steve,

As an aside to this thread, I use timer events in my splash and about
forms for some primitive animation - turning controls (usually images)
on or off, altering the left and top properties using a form level
counter and a select case intcounter to do the various things. After
2-5 seconds, depending on how creative I'm feeling, the final case sets
the timerinterval to 0.

This is always a bit of fun - for example, for a parking meter
maintenance tracking app, the splash form has a car moving into a
parking sapce, knocking over a parking meter and the money falling out.
A rnd function will occasionally change the car into a rhiocerous or a
tank.

I've done this sort of thing often in A97 - do you think it would cause
the sorts of problem you're alluding to in later versions (I'm dealing
with A2K3 now)?

--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #6
"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:cj**********@coranto.ucs.mun.ca...

Stephen K. Young wrote:
Then you can avoid the overhead of the timer event as
well as the unpleasant side effects of timer events in general.


Steve,

I've done this sort of thing often in A97 - do you think it would cause
the sorts of problem you're alluding to in later versions (I'm dealing
with A2K3 now)?

--
Tim - http://www.ucs.mun.ca/~tmarshal/


I do not know about A2K3, although I will be testing it in the next month or
so.

In Access 2K, after all updates are applied, a timer event can still cause
Access to enter a strange state where form error warnings and other error
warnings are suppressed (such as a query with an error). For example, in
some cases after a form with a timer has been opened and then closed, you
can try to edit a record with a missing required field in a completely
unrelated form or even a table datasheet, and the record will not save, but
no warning message is displayed about the missing field (confusing). Exiting
Access completely and re-starting fixes the visibility of these normal error
warnings.

Steve Jorgenson saw similar behavior and suggested explicitly setting the
TimerInterval to zero prior to closing any form with a timer, e.g. in the
form close event. In my testing, that did improve things somewhat, but I
still saw the same behavior, on more than one computer, all with Access 2000
and Windows 2000. I have not figured out why this occurs.

- Steve
Nov 13 '05 #7

"Stephen K. Young" <s k y @ stanleyassociates . com> wrote in message
news:2s*************@uni-berlin.de...
Steve Jorgenson ...


Sorry, that should have been Steve Jorgensen.

- Steve
Nov 13 '05 #8
Stephen K. Young wrote:
Steve Jorgenson saw similar behavior and suggested explicitly setting the
TimerInterval to zero prior to closing any form with a timer, e.g. in the
form close event. In my testing, that did improve things somewhat, but I
still saw the same behavior, on more than one computer, all with Access 2000
and Windows 2000. I have not figured out why this occurs.


Wow. I'm glad I caught this thread and thank you for going into detail
on this for me - I've saved your post for future reference.

When I started with A2K3, I figured some of the "fun" database apps I do
for my own non-work hobbies (as per my web site) I would be able to
distribute to my friends, many of whom have A2K. My little animations
are a staple of my development, a "signature" (all my apps have a
dancing cow somewhere) if you will.

So far, I've not encountered this behaviour on A2K3, but I am in my
initial "exploration stages" of this product.

There must be some sort of code one can do (and I'll look for it on the
access Web and other sites or google for it) and include on an opening
form so that if the Access used is 2K, then I can save that in a hidden
form or global variable so that the timer interval is set to 0 on
opening forms.

One other question, Steve, if you get this far. 8) The behviour you've
seen, it occurs with all the latest SPs for A2K? I deliberately stayed
away from A2K at work and prevented my organization from using it due to
the negative press A2K received here in 1999 and afterward, but my
understanding is that with all the latest SPs applied A2K is not all bad?

--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #9

"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:cj**********@coranto.ucs.mun.ca...

One other question, Steve, if you get this far. 8) The behviour you've
seen, it occurs with all the latest SPs for A2K? I deliberately stayed
away from A2K at work and prevented my organization from using it due to
the negative press A2K received here in 1999 and afterward, but my
understanding is that with all the latest SPs applied A2K is not all bad?


Access 2K is now very stable for me, after all updates, with separate front
end, back end, and libraries, using Jet and DAO. I always install the latest
updates, which for Access 2K include Office Service Pack 3 and Jet 4 Service
Pack 8, plus the usual security updates. Most of my users are Windows 2000
SP4, a few have Windows XP.

I do have this one unresolved issue, namely a timer form that sometimes
suppresses error warnings after it is opened which continues after it is
closed. My problem timer form performs some complicated synchronization with
other open windows. A self-contained timer form like you suggest, which
solely animates and closes itself, may not have the same problem. I have one
other form that does this, and it seems to be fine. So your animation may be
ok, you need to test it.

- Steve

Nov 13 '05 #10

"Stephen K. Young" <s k y @ stanleyassociates . com> wrote in message
news:2s*************@uni-berlin.de...
A self-contained timer form like you suggest, which
solely animates and closes itself, may not have the same problem.


There are other issues with timer forms that you need to watch out for, but
can be programmed around. The timer form seems to become the current form
briefly when the timer event triggers, so operations that use DoCmd or
similar code that operates on the currently active form may accidentally
operate on the timer form. Printing is an example of this, the user might
click a toolbar button to print a report from a standard form, but if you
refer to Screen.ActiveForm your code must deal with the timer form.

- Steve
Nov 13 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
1
by: Richard | last post by:
I'm new to this type of programming, so please bear with me. I just came over from Top Down style Pascal. (Yes lots of books, evidently the wrong books). My program will read data from an ADC...
8
by: Daniel P. | last post by:
I'm trying to set a timer that gets called every 3 seconds so I can update a field in the UI with the time elapsed since the process started. What am I doing wrong that timerDF_Tick does not get...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
7
by: Noozer | last post by:
I have a timer on a form. It isn't firing at all. I know that the timer is enabled, and that the interval is low (4000, which should be 4 seconds). To ensure the timer wasn't being inadvertantly...
10
by: moti | last post by:
I need to check for the existence of a file (the filename and folder are known). The file may be created at any time, before or after the start of the file check. As I do not want to burden the...
10
by: Joris De Groote | last post by:
Hi, I have wrote a program that checks for files and moves these files to the correct folders when they come in. Everything works fine. However I always have to start that program manually. I...
2
by: BobAtVandy | last post by:
I'll greatly appreciate any help on this. Actually 2 questions: 1. I believe I need to use the Windows timer System.Timers.Timer . The examples I find on the web all access that timer by...
3
by: kirk | last post by:
I have a class with a custom event that starts a timer when it's holding subscriptions and stops the timer otherwise. The timer repeatedly calls an API which takes a string. For each call the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.