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
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.
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
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,
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 ?
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
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.
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!
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?
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
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.
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"
I am developing a database for our fleet of company vehicles. What I'd like to know is is it possible to set up some kind of alert where a dialog box appears (like the sort of thing in Outlook with reminders).
What I'd like is, for example, if a vehicle requires a service a pop up would appear, a couple of weeks before, when the database is opened to alert the user that it will be required soon.
If anyone knows how to do this it would be greatly appreciated.
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.
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
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.
When I start my database, I would like a field to be checked for todays date. If the condition is true, I would like it to use an alert to tell me that the condition is met. Any ideas?
I have a form with a sub form. On the sub form I have #Ordered, #Supplied & #Used. These fields calculate to give the user the # in stock. This figure is displayed on the form. On the form I also have the Reorder level which is set by the user.
I would like to be able to make a message alert pop up when the database is opened or when any of these records show the # in stock is lower than the Reorder level, ensuring that we do not run out of stock.
My knowledge of access is pretty limited. Can anyone help me with this problem. I have some due dates entered into the database via a form. Is it possible to send an email alert say 1 month and then 1 week before the due date?
I have a screen that has 8 different buttons and clicking on any of these buttons generates an appropriate letter and once the button was clicked in also inserts a date, today's date.
Private Sub btnSecondReport_Click() On Error GoTo Err_btnSecondReport_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 '* Call the standard letter printing routine for this form.
Call StandardLetterVariables("Bd$50paid.doc")
btnFirstReport.SetFocus [DTSecondLetterSent] = Date
So I would like to create an alert that looks at this date and 14 days from that date will alert, remind whatever I want to do. I am thinking it wouldn't be too hard to create a reminder that pops up when the record is opened but I am sure users will want to be reminded without having to go into the record.
My question: can I and is it hard to create a reminder that will take care of paying attention when and who needs to be reminded or should I just create a report and let them run this.
I hope this makes sense and sombody has done this.