timer

  • Thread starter Thread starter CaveMan
  • Start date Start date
C

CaveMan

Hello all,
My question concerns installing a timer in VB in MS Excel 2002.
I have designed a database that will be used by 150 to 200 individuals
on a network. If the database is left open at one location it can't
be used elsewhere.
I have found the vb code for a timer, but I would like the timer to
wait a specific amount of time, then a "yes/no" message box appears
with a question concerning keeping the database open, and if no
response is given within 60 seconds, close and save the database.

Curtis
 
Take a look at Excel's OnTime method. Otherwise, use a Windows timer.
Chip Pearson has a page on his site about both, IIRC.

BTW, check your data provider doesn't already have functionality for
this kind of timeout behaviour. And if you are using ADO you may get
some mileage out of certain properties of the Connection object such
as ConnectionTimeout, CommandTimeout.

(Please don't tell me you are using an Excel workbook as a data source
for 150+ users...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Self Closing MsgBox 6
Timers and code... 1
Access: "global" timer 2
Concurrent Timers... 2
File creation wait timer 23
hh:mm:ss on a timer 2
Understanding Timer Pause Code 6
Cancel timer event if criteria not met 1

Back
Top