Posted on 2003-03-18
Medium Priority
Last Modified: 2010-05-01

I want create an app to reminder the user  abt his appointment(for eg : he has appointment with client 4 pm).So my app should popup a dialogbox at 4pm and remind him abt his appointment.Is it possible to do?. If yes, can some-one help me to do this.

Question by:beeena
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 14

Expert Comment

ID: 8162646
' You can do it in many ways, here someting to start with...
' Add a timer control to your form and paste this code :

Private Sub Form_Load()
Timer1.Interval = 1000 ' per second
End Sub

Private Sub Timer1_Timer()
If Hour(Time) & ":" & Minute(Time) = "12:00" Then
MsgBox "It is 12:00 !!!", vbInformation
Timer1.Enabled = False ' app finished his task
End If
End Sub
LVL 11

Accepted Solution

supunr earned 150 total points
ID: 8162824
Option Explicit

Private Type Appointment
    Description As String
    DateTime As Date
    Flag As Integer ' 0 - waiting, 1 - remind again, 2 - completed
End Type

Private Appointments(100) As Appointment
Private AppointmentsCount As Long

Private Sub Form_Load()
    ' Load all the saved appointments (may be from an dat file or registry)...
End Sub

' Add timer control to the form and set the interval to 1000 (1 sec)
Private Sub Timer1_Timer()
    Dim i As Long

    For i = 0 To AppointmentsCount - 1
        If (Appointments(i).Flag = 0) Then ' not done
            If (Abs(DateDiff("S", Appointments(i).DateTime, Now())) < 2) Then
                ShowMessage Appointments(i)
            End If
        End If
    Next i
End Sub

Private Sub ShowMessage(ByRef msgApp As Appointment)
    ' write your code to show the message
    ' have a non-modal form coming up rather than messagebox
    MsgBox msgApp.Description
    msgApp.Flag = 2 'done
End Sub

Private Sub Form_Unload(Cancel As Integer)
    ' Save all the appointments - because these could have been changed (may be from an dat file or registry)...
End Sub

Hope this will give a start.

Good Luck!
LVL 11

Expert Comment

ID: 8162853

Yep, simply create an application which has the interface to get appointment details and times.  then you  create the executalbe and make a shortcut to that in the Startup folder.  Then you need a timer to check if the correct time has reached and if so give a reminder.

I am only giving you a possible code to check the time.  It is up to you how you want to get the details of the appointment from the user, etc. (If you need a full program, then increase the points)

(add to previous comment)

Author Comment

ID: 8162981
Hello supunr
Can you now give me in detail the whole program along with code?
Appreciate your help

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question