473,394 Members | 1,699 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,394 software developers and data experts.

Accessing the real, current time whilst a database is open.

I have an MS Access 2010 database which when opened, displays one of three Care Home Duty Rosters as part of its top menu. It can be an Early, Late or Night Roster depending on which 8-hour segment of the day and the date on which the database was opened. This arrangement works fine for the instant that the database is opened. We alight on the required dated record in the required Roster file. All well and good so far, but if whilst the database is open, the actual time of day should go past the time-bracket which is specified for the particular Roster showing, then of course that Roster will be out-of-phase. For example, an Early Roster will still be showing at a time by which the Late Duty team would have reported in for work. (Not what I want at all!) What I need to address this problem, is a way of getting my database to be aware of the time WHILST IT IS OPEN and not just WHEN IT IS OPENED, which is the case at present. Getting some time type object to fire at one-minute intervals would seem to be about right. I have tried setting up a Form Timer but without success so far. I would be grateful for any help on this or for any ideas or suggestions. Thanks in advance.
Dec 14 '13 #1
1 1014
Luuk
1,047 Expert 1GB
I would to 2 things:

1. Find the enter-key on your keyboard, it makes your question easier to read.

2. Google for 'visual basic timed event'.
You will find how to implement an even which makes changes when it happens
Dec 14 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: MarthaR | last post by:
I am trying to add the current time to a field when the user clicks on the toggle button next to the field. I am getting a time of 12:00:00 AM each time I click the button. How do I get a...
1
by: jdph40 | last post by:
I am using Access 2002. I downloaded the forms sample database FrmSmp97.mdb from Microsoft and used the following code in the timer event of a hidden form in order to close a database if no...
18
by: Tim Quon | last post by:
Hi I need to print the current time. I found an example where this is done as followed: long *mytime; time(mytime); printf("time: %s", ascitime(mytime); But this doesn't work and prints...
3
by: | last post by:
I have a datetime field in table. I want to insert the current time of database server to the table thr ASP.NET (C#). I have dataset to do the insert: DataSet1.TableNameRow rowNew =...
2
by: jpzhai | last post by:
Why the recovery to time is greater than the current time? --------------------------------------------------------------------------------------------------------------------- Last committed...
4
by: iwdu15 | last post by:
Hi, in VB i could use the keyword Now to get the current DateTime, but C# doesnt have that. How can i get the current time? thanks -- -iwdu15
4
JodiPhillips
by: JodiPhillips | last post by:
MS Access2000 Hi everyone, I've searched the forums for an answer to this question and nothing jumps out at me. When a database is opened I want to automatically run code (at start-up) that...
3
by: sejal17 | last post by:
hi, I want to insert the current time in my database.how can i get the current time? thanks in advance.
4
by: JuAn2226 | last post by:
Hi, can anyone help me . when my program starts there is numbers and time will be display in the form of visual basic. it will run continuesly .My problem here is i dont know how to display the data...
1
oranoos3000
by: oranoos3000 | last post by:
hi I want to get current time from server only once while user open page from site and repace this time with current time client and with each second that is added this time is added how can...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.