Timer Function

Mar 12, 2006

Hi guys, im looking to incorporate a timer function into my database.

Basically at the moment students can takes test in the 'quiz' form - id like a function that starts a timer once its opened, and then display the time taken in a message box when the test is finished.

Any ideas on how i should go about this would be much appreciated,

Ross

View Replies


ADVERTISEMENT

First Timer

Apr 14, 2008

Hello Administrator, contributors, experts and friends!

I am excited to join this blog for the very first time. I am new to MS Access but learning every day and doing very well. I am in process of buiding an Issues list and because of that you will see lot of me with tons of questions. First most, I will search this forum to find the answer otherwise I will be posting questions. Thanks for the opportunity to participate in this forum.

View 2 Replies View Related

Timer On Tab Pages

Nov 13, 2007

Hi im trying to see if there is a way to put a timer in tab pages. so that when the time expires it changes to another tab. I have it working fine with the command button. I have like 20 tabs all hidden until the user clicks the cmd. Now is there a way to put a timer? I know that i can do it with the Form_timer, but that dont seem to work with tabs.
thanx

View 8 Replies View Related

Form Timer

Mar 30, 2005

I’m not sure if this is going to be more of a VBA question but at the moment for me it’s a form thing.

Is there any way i can have a form automatically close and load a different form after an amount of time since it was loaded has passed.

I have a form and i want it to lose after 30 seconds of opening and load the next form.

I’ve had a search around access help but that really wasn’t too successful and I found nothing like it on these forums.

Any help or advice is greatly appreciated. Thanks,
Crisp.

View 1 Replies View Related

Timer Event

May 24, 2005

I'm looking for a code that close my databse when a user is unactive for a set time.

I've search the forums but nothing workked for me

Is there someone who already have a code for this or maybe can help me?

thanks in advance

View 1 Replies View Related

Timer Code

Oct 11, 2004

I wrote the following simple code in a form's event procedures, in order to create a splash screen for my application. The form remains open all the time, I meant it to close after cnt>10. I checked with message boxes and it seems that cnt never increases to more than 1. Any ideas why ?

Private Sub Form_Load()
Dim cnt As Integer
Me.TimerInterval = 1000 'timer interval 1 second
cnt = 0
End Sub

Private Sub Form_Timer()
Dim cnt As Integer
cnt = cnt + 1
If cnt > 10 Then
Me.TimerInterval = 0
DoCmd.Close acForm, Me.Name 'here I want the form to close
End If
End Sub

Where can one find what terms such as acForm, Me.Name, acPreview etc mean ?

View 4 Replies View Related

Modules & VBA :: How To Stop Timer

Aug 2, 2013

I tried this but dont know how to stop the timer...I want to run the code that changes the Form color but want to be able to stop the Timer and reset it to start over..Will this timer work? Almost like an auction timer. But want to be able to reset the code at any stage...

Code:
Public Sub ExcelTimer()
Dim PauseTime, Start, Finish

[code]..

View 2 Replies View Related

Question About Setting Up A Timer Alert

Sep 12, 2007

Hi everyone, I quite new to access, so I would like to ask for a little help. Is it possible to create an alert in a database related to date and time. Shortly the user needs to be alerted when a certificate expires on a specific date. Is it possible to do that in Access?
Thank you anticipated,
Bye,
Fehermaci

View 5 Replies View Related

Simple (?) Timer Event Problem

May 24, 2005

I created a form to list the number of customers in my lobby. In the Form Footer I placed a field to count the number of customers waiting (Name: CC1, Control Source: =Count([LName]). Works fine.

I want a Beep on the form if the customers exeed 5. I placed the following code in the Timer event but I cannot get the event to work. I believe it has something to do with the field name but I'm unsure. Any help would be appreciated.

Private Sub Form_Timer()

Requery

If [CC1] >= 5 Then

Beep

Else

End If

End Sub

View 6 Replies View Related

Skip On Timer Event Cycle

Sep 15, 2005

My form is always open and runs a timer event which runs a series of functions and procedures. I don't want to run a certain procedure on every timer cycle, but rather, every other timer cycle.

Any thoughts on how best to accomplish this. I'm having a mental block!

Scott

View 3 Replies View Related

Problem Whit Timer In Form

Aug 7, 2006

Hi
I' am trying to make a form which executes a macro in every minute. I have put the Timer Interval to 60000ms. But now the form executes the macro only once and I want that macro will be executed always after one minute. So how I can make this work? Do I have to make somekind of loop in code or what?

View 2 Replies View Related

Forms :: Date Count Down Timer

Jul 18, 2013

I want a count down timer up to a certain date (30th Aug 2013) in days how do I do this and have is visable on a form?

View 1 Replies View Related

Forms :: On Timer Event Execute Only Once

Oct 1, 2014

Got a problem here:

Timer Interval = 5 Seconds
Private Sub Form_Timer()
My code here..
End Sub

The code repeats every 5 seconds, what I want to do is to execute it only once.

View 3 Replies View Related

Queries :: How To Open A Form With A Timer Event

Aug 12, 2014

I've taken a break from Access for a while, but I'm back at it again and having some difficulty. I am trying to open a form with a timer to state that the database is going to shut down in five minutes if they don't respond. I'm obviously using the wrong code. I've been trying to use the following:

Private Sub Form_Timer()
DoCmd.OpenForm "frmWarning"
If Forms!frmHidden!chkActive Then
Forms!frmHidden!chkActive = False
Me.TimerInterval = 300000
Else
DoCmd.Quit
End If
End Sub

It crashes on the 'DoCmd.OpenForm "frmWarning"'

View 3 Replies View Related

Forms :: MsgBox To Display Using Timer Event

Aug 19, 2014

I have a form (MS Access 2003) that has a button that when pressed, assigns the current time to field [Time1] using

Code:
Me.Time1 = Now()

I have another field [Time2] that adds 15 minutes to [Time1] using the following in the Control Source field

Code:
=DateAdd("n",15,[Time1])

I was wanting to use these to force a message box when the system time reached Time2 and tried the following code on the Form ON TIMER event (Interval at 1000 ms) but it does not work.

Code:

If Time() > Me.Time2 then
MSGBox "Time to show message"
End if

I tried putting in a manual time in the VBA such as:

Code:

If Time() > #2:05:00 PM#
MSGBox "Time to show message"
End if

which worked. So, I am guessing there is something with my orignal code using Me.Time2 that is causing the problem.

View 3 Replies View Related

General :: Countdown Timer On Form Using Different DateDiff

Jul 31, 2012

I have created a countdown counter on a form using different Datediff's so to split the renaining time into days, hours, minutes and seconds.

The Datediff compares Now() to a text box called txt.Leaving which has a date/time unputted via a table (Format: General Date)

However the seconds and minutes work ok but the hours and days dont count down inline with the minutes and seconds reducing. The hours do alter when the minutes are 13 mins into the new hour. This would seem to point possibly to rounding off but I would expect that further into the hour.

Below is the Datediff that is set as the control source in a text box and the form it sits on has its timer set to 1000 and the event requeries the text box.

=DateDiff("d",Now(),[txt.Leaving]) & "d, " & DateDiff("h",Now(),[txt.Leaving]) Mod 24 & "h, " & DateDiff("n",Now(),[txt.Leaving]) Mod 60 & "m, " & DateDiff("s",Now(),[txt.Leaving]) Mod 60 & "s"

Using Access 2000.

View 2 Replies View Related

Creating A Timer Event That Checks System Time?

Apr 21, 2005

I need a query run that brings up a list of customers that need maintence after 6 months after their last maintence service. As soon as you open the DB, the event/query runs and if there are any customers past due to display them. And if there are none, to not even show the query at all.

I have very little experience with timers and if/then statements and don't know how to set this up.

Any help would be greatly appreciated. Thanks in advance.

View 1 Replies View Related

Modules & VBA :: Timer Based Event - Auto Shutdown

Oct 9, 2014

I use a timer based event that shuts down the frontends after some idle time.

1. How to disable the timer as it causes some weird bahaviours while editing the code? is shuting down the hidden form enough?

2. Is there a way to add regular maintenance intervals, i.e. every wednesday at 20.00.? how?

View 2 Replies View Related

Modules & VBA :: Adding Text To Label Caption On Timer

Jan 20, 2015

I have globally defined 'Progress' as integerer and using the following code on my splash screen - i want to add a "." to the end of the label caption until progress = 10 (10 timer events)

Private Sub Form_Load()
Progress = 0
End Sub

Code:
Private Sub Form_Timer()
Dim Dot As String
Dot = "."
Progress = Progress + 1
Me.lblProgress.Caption
If Progress = 10 Then
DoCmd.OpenForm "frmLogin"
DoCmd.Close acForm, "frmSplash"
End If
End Sub

View 1 Replies View Related

Add Timer In Access Form And Store Data In A Table

Dec 2, 2012

How to insert a timer in the PropertyFrm Form in the Access Database attached to this message. When a user opens the PropertyFrm form I want the timer to record the number of hours, minutes, and seconds each user spend time on a record including the current dateand have the data stored in the Timer table.

When a user goes to another record, I want the timer to reset and store the hours, minutes, seconds, and current date on another record in the Timer Table and so on. If the fields and data types in the Timer table is not created properly.

I do not want the time and current date to be displayed on the PropertyFrm Form. I want the information to be stored in the Timer table.I do not want the user to see the hours, minutes, seconds and current date information on thePropertyFrm Form.

View 2 Replies View Related

Forms :: Timer Event Causing System Resource Exceeded

Dec 9, 2013

I have Access 2010 and have made a small system that creates a table as a result of an query based on linked tables. The result is approximately 40 records that are grouped in 4 different priorities where each record has a status of green, yellow or red.

By using the timer event I want to loop through 6 different forms starting with the overall view and herafter priority 1 form, priority 2 form and so on. When the last form has been displayed start over again. Loop for ever until stop button has been pushed on the first form.

The timer is set to 15000 on each form, when I open a form the first thing that happens is that I close the previous open form.

After the system has looped 4 times it gets "SYSTEM RESOURCE EXCEEDED".

I have used 3 days on the internet to try to get a solution on my problem with no luck. I have got so far that it must be something with the timer function. Since if I run it manually (open form, close previously, open next form etc) then no issues.

I have the latest service pack for access 2010.

View 2 Replies View Related

Forms :: Timer Event - Wait Until Form Fully Loaded Before Visible

Nov 7, 2014

I have tried using a timer event to not show a form until it is fully loaded, to no avail.

Code:
If CurrentProject.AllForms("FONNewEdit").IsLoaded = True Then
Me.Visible = True
Me.TimerInterval = 0
End If

I have tried using the onload, onopen but the form still displays before being fully loaded.

View 7 Replies View Related

Forms :: Closing Opening Form With Timer Then Opening Main Menu

Apr 7, 2014

I have a Form opening from Access Options. I would like to close this Form using the Timer. The following is the code I have used but it is not working.

Private Sub Cover_Page_Form_Load()
OpenTimer = Timer
End Sub
Private Sub Cover_Page_Form_Timer()
If (Timer - OpenTime) = 5 Then DoCmd.Close acForm, "Cover_Page_Form", acSaveYes
End Sub

Next question. If I can get this to work can I then use a DoCmd to open new Form within the code above or do I need a new process.

View 5 Replies View Related

Modules & VBA :: Creating A Function That Counts Records And Use That Function In A Query

Dec 11, 2013

So basically I need making a function that will count the number of records from another table/query based on a field from the current query.

View 2 Replies View Related

Forms :: SUM Function Produces Error From Calculated Function

Jan 30, 2014

I have a project at hand and it's been a predecessor of mine and client has asked me to do some work on it and extend functionality - but I have not really delved into Access before and I have had to worked my way through to this final snag :/

The Main Form has one sub form. This sub form allows the user to add multiple order items i.e. qty, stock, description from records within the system - fairly straight forward.At the last column of each row is the sub total of those particular items i.e.

Qty Unit | Item ID | Total
-----------------------
2 | 1234 | 80.00
------------------------
1 | 43526 | 20.00
------------------------
> | |

So the total is a function of =[Qty Unit] * [Unit Price].Then in the Footer of this SubForm is the Sub Total

=SUM([Qty Unit] * [Unit Price])

All fine and well..... However, the additional functionality kicks in.

Lets add the additional customer_id from the Main Form. Each Item bought is dependent on the customer_id i.e. they get special prices depending on who they are.So a New table is made which has the Item ID and SpecialPriceID (of a table to define as a specialPrice) and the Price linked to this Item and Special Price category. So say that there are two groups of users "wholesale" and "nonwholesale" these would be SP_1 and SP_2 and each client is defined either one of these, and each stock item has a Price for each SP_1 and SP_2. Hopefully I've explained myself there.

Back to the SubForm. So now the Total needs to calculated differently with needed the external customer_id from the Main Form.

Code:

Function CalculateSpecialPrice(ItemID As String, CustomerID As String, Unit As Integer)
Dim SPSelect As String
SPSelect = "SELECT Price FROM [Items_SpecialPrices] WHERE"
SPSelect = SPSelect & " ItemID = '" & ItemID
SPSelect = SPSelect & "' AND SpecialPriceID = (SELECT SpecialPriceID FROM Customers WHERE customer_id = " & CustomerID & ") "

[code]....

its the sub total I just keep on getting #Error on. I have even watched (using alerts) that the correct return variable is the same as the individual rows. This is the equation I used for the SubTotal within the footer.

=SUM(CalculateSpecialPrice([Item ID], [Form]![FormName]![CustomerID], [Qty Unit]))
#Error

View 2 Replies View Related

Date Function/need Time Function

Jun 9, 2005

We have a date function that converts a text date format. Can someone help me with time function to do the same thing? We want military time. The field is like this now: txt fields.
160037
213137
224356
235716
235800
12341
21708
22732
Here is the date function we use:
Function f2Date(strDateOld As String)
Dim strDate As String, strMonth As String, strYear As String
strMonth = Mid(strDateOld, 5, 2)
strDate = Right(strDateOld, 2)
strYear = Left(strDateOld, 4)
f2Date = strMonth & "-" & strDate & "-" & strYear
f2Date = CDate(f2Date)
f2Date = Format(f2Date, "mmmm d yyyy")
End Function

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved