A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I make an Access form requiry itself every 30 seconds?



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2007, 05:56 PM posted to microsoft.public.access.forms
GregR[_2_]
external usenet poster
 
Posts: 1
Default How do I make an Access form requiry itself every 30 seconds?

Hello. I've set this setting before, I think - or else I coded it that way.
Anyway, I need a form to requiry its query/source every 30 secods to see if
any new records were added in the last 30 seconds. The background is this:
one user enters that someone has arrived at the front desk. Another user in
the back office wants to know who has arrived for their appointments.
Sounding a chime when they arrive/a new record is added would be nice, too.
Thanks in advance.
  #2  
Old May 5th, 2007, 06:08 PM posted to microsoft.public.access.forms
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default How do I make an Access form requiry itself every 30 seconds?

Use a timer event in that form to run this code step:

Me.Requery

--

Ken Snell
MS ACCESS MVP

"GregR" wrote in message
...
Hello. I've set this setting before, I think - or else I coded it that
way.
Anyway, I need a form to requiry its query/source every 30 secods to see
if
any new records were added in the last 30 seconds. The background is
this:
one user enters that someone has arrived at the front desk. Another user
in
the back office wants to know who has arrived for their appointments.
Sounding a chime when they arrive/a new record is added would be nice,
too.
Thanks in advance.



  #3  
Old May 5th, 2007, 06:41 PM posted to microsoft.public.access.forms
missinglinq via AccessMonster.com
external usenet poster
 
Posts: 545
Default How do I make an Access form requiry itself every 30 seconds?

Requerying the form automatically takes the user back to the first record.
Even if you write code to bookmark the current record before the requery and
return to that record, requerying every 30 seconds isn't going allow time to
do much else with the database, including entering when a new appointment
arrrives. It would make more sense, to me, to either place a comand button on
the form so the user can requery before they check on arrivals, or better yet,
requery each time after an new arrival is entered.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200705/1

  #4  
Old May 5th, 2007, 06:53 PM posted to microsoft.public.access.forms
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default How do I make an Access form requiry itself every 30 seconds?

Yes, requerying will cause user to go back to first record. That may or may
not be a problem with the form, depending upon its design and purpose.

For example, a form that is "read only", and that is filtered to show
records in reverse chronological order, and that are at most x minutes old
(older records are not shown) would be a fine form for using a timer event
and a requery action.

--

Ken Snell
MS ACCESS MVP


"missinglinq via AccessMonster.com" u28780@uwe wrote in message
news:71bb6daa639a0@uwe...
Requerying the form automatically takes the user back to the first record.
Even if you write code to bookmark the current record before the requery
and
return to that record, requerying every 30 seconds isn't going allow time
to
do much else with the database, including entering when a new appointment
arrrives. It would make more sense, to me, to either place a comand button
on
the form so the user can requery before they check on arrivals, or better
yet,
requery each time after an new arrival is entered.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200705/1



  #5  
Old May 5th, 2007, 08:28 PM posted to microsoft.public.access.forms
missinglinq via AccessMonster.com
external usenet poster
 
Posts: 545
Default How do I make an Access form requiry itself every 30 seconds?

And, of course, having the receptionist pick up the phone and saying "Mr.
SoandSo is here for his appointment" would probably take less time and be
more effecient!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200705/1

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.