Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3486620
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:03:08+00:00 2026-05-18T11:03:08+00:00

I have a reminders table in my apps database FieldName = ‘id’ FieldName =

  • 0

I have a reminders table in my apps database

FieldName = 'id'
FieldName = 'title'
FieldName = 'description'
FieldName = 'start_date'
FieldName = 'start_time'
FieldName = 'end_date'
FieldName = 'end_time'
FieldName = 'repeat'  (true/false)
FieldName = 'occurs'  (Integer = 1-Daily, 2-Weekly, 3-Monthy, 4-Annually)
FieldName = 'completed" (true/False)

Is there a way to use a TTimer to display the title and description of the reminder whenever the event occurs? If so, please explain in code/seudo code, or text.

a reminder is either a onetime – or – re-occurring event

if one time (occurs = 1 daily) , the date and time is stored in the Start_Date & Start Time
The reminder should display at that time. After displayed, table field “Completed” is set to true.

if re-occurring, the date and time is stored in the Start_Date & Start Time
and the End Date and End Time is stored. The reminder should display at that day and time, each day (1), week (2), month(3), or year(4)

If daily, reminder should display at that time every day, until end date is reached

If weekly, reminder should display at that time, on that particular day (of each week), until end date is reached

If monthly, reminder should display at that time, on that particular day (of each month), until end date is reached

If Annually, reminder should display at that time, on that particular day (of each year), until end date is reached

when end date is reached, Completed is updated with True

thanks, i hope this is easily do-able with out any additional components or libraries

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:03:09+00:00Added an answer on May 18, 2026 at 11:03 am

    So, i couldn’t figure out how to post all the code, but here is the main TTimer Event

    Procedure TForm1.Timer1Time(Sender: TObject);
    var
     CommandText: String;
    begin
     try
      Timer1.Enabled:= False;
      if ADOQuery1.Active then 
       ADOQuery1.Active:= False;
      CommandText :=
      Format('SELECT * FROM REMINDERS WHERE (START_DATE <= %s) AND (COMPLETED = FALSE) AND (LASTCHECK < %s)',
        [FormatDateTime('mm/dd/yy', Date), FormatDateTime('mm/dd/yy', Date)]);
    ADOQuery1.SQL.Text := CommandText;
    try
      ADOQuery1.Active := True;
      if not ADOQuery1.IsEmpty then
      begin
        BuildReminderList(ADOQuery1);
      end;
    except
      //
    end;
    finally
    Timer1.Enabled := True;
      end; 
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one problem... There is a table in my MySQL database that stores
I have a table in one database, call this db x. I have another
I have a date and time column in my mysql table called start_date and
I have created an SQLiteOpenHelper subclass to store reminders. I create a table in
I have a reminder table in my database that has 2 columns to store
I have a table view as follow i did set reminders for each cell
I've got a gridview that renders as a table. I have an Add button
I have in mind a simple alarm app for the purpose of hourly alerts/reminders.
I have created an sqlite table using the following statement: CREATE TABLE IF NOT
I have a table that is is sorted 1st by Reminder Date then ID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.