473,396 Members | 2,068 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,396 software developers and data experts.

Reminder pop-up in Microsoft Access 2013

3
Hello everyone I'm new to Access and have been putting together an Assets Database for the company i work for but i have no idea how to create a reminder form or report. I would like the reminder to reference information from 2 tables. I have a Registration Due in one table and a Next Service Due in another. I would like to have a 21 day reminder for both to display upon opening and i don't mind if it is separate reminders or one joined one.
If anyone could help me on this it would be very much appreciated.
Thank You
Jun 4 '17 #1

✓ answered by NeoPa

Hi Bryan.

It's actually not necessary to create an AutoExec macro simply to fire off a form on opening the database. You can specify a form in the Startup Options which will open automatically when the database is opened as follows :
File | Options | Current Database | Display Form

Unless you already have another use for the form you could then design it to show the details of your due items.

At this point it's hard to be too specific as we don't know the layout of your tables but if your form had a Detail Section and each table had an [AssetID] linked to a separate table with asset info like an [AssetName] then the form's .RecordSource could be a QueryDef or some SQL with the following SQL (or something similar) :
Expand|Select|Wrap|Line Numbers
  1. SELECT   [tblAsset].[AssetName]
  2.        , [qDue].[Registration Due]
  3.        , [qDue].[Next Service Due]
  4. FROM     [tblAsset]
  5.          INNER JOIN
  6.          (SELECT [AssetID]
  7.                , [Registration Due]
  8.                , Null AS [Next Service Due]
  9.           FROM   [tblRegistration]
  10.           WHERE  ([Registration Due]>=DateAdd('d',21,Date()))
  11.           UNION ALL
  12.           SELECT [AssetID]
  13.                , Null AS [Registration Due]
  14.                , [Next Service Due]
  15.           FROM   [tblService]
  16.           WHERE  ([Next Service Due]>=DateAdd('d',21,Date()))) AS [qDue]
  17.   ON     [tblAsset].[AssetID]=[qDue].[AssetID]
  18. ORDER BY [tblAsset].[AssetName]
  19.        , [qDue].[Registration Due]
Please note that this SQL code is untested as I don't have a database to test it on.

If the recordset is empty once loaded then the form can be closed. If that's how you prefer to handle it. I suggest you get that up and working before moving on to such worries though. Let us know when you have or if you have difficulty managing that from these instructions.

I would just add, in case it isn't obvious, and that may be possible for newer developers, that to show the data you'll need to create Form Controls for each of the fields returned by this SQL or QueryDef.

5 2890
NeoPa
32,556 Expert Mod 16PB
You need a form that's set to open when the database opens and a Form_Open() Event Procedure that runs your checking code.

When you have that up and working we can proceed further.
Jun 4 '17 #2
Bryan1
3
Thank you for the reply! I have created a reminder form with an autoexec which opens it upon start up. I am quite new to all of this and have no idea what the checking code is.
Jun 5 '17 #3
NeoPa
32,556 Expert Mod 16PB
Hi Bryan.

It's actually not necessary to create an AutoExec macro simply to fire off a form on opening the database. You can specify a form in the Startup Options which will open automatically when the database is opened as follows :
File | Options | Current Database | Display Form

Unless you already have another use for the form you could then design it to show the details of your due items.

At this point it's hard to be too specific as we don't know the layout of your tables but if your form had a Detail Section and each table had an [AssetID] linked to a separate table with asset info like an [AssetName] then the form's .RecordSource could be a QueryDef or some SQL with the following SQL (or something similar) :
Expand|Select|Wrap|Line Numbers
  1. SELECT   [tblAsset].[AssetName]
  2.        , [qDue].[Registration Due]
  3.        , [qDue].[Next Service Due]
  4. FROM     [tblAsset]
  5.          INNER JOIN
  6.          (SELECT [AssetID]
  7.                , [Registration Due]
  8.                , Null AS [Next Service Due]
  9.           FROM   [tblRegistration]
  10.           WHERE  ([Registration Due]>=DateAdd('d',21,Date()))
  11.           UNION ALL
  12.           SELECT [AssetID]
  13.                , Null AS [Registration Due]
  14.                , [Next Service Due]
  15.           FROM   [tblService]
  16.           WHERE  ([Next Service Due]>=DateAdd('d',21,Date()))) AS [qDue]
  17.   ON     [tblAsset].[AssetID]=[qDue].[AssetID]
  18. ORDER BY [tblAsset].[AssetName]
  19.        , [qDue].[Registration Due]
Please note that this SQL code is untested as I don't have a database to test it on.

If the recordset is empty once loaded then the form can be closed. If that's how you prefer to handle it. I suggest you get that up and working before moving on to such worries though. Let us know when you have or if you have difficulty managing that from these instructions.

I would just add, in case it isn't obvious, and that may be possible for newer developers, that to show the data you'll need to create Form Controls for each of the fields returned by this SQL or QueryDef.
Jun 5 '17 #4
Bryan1
3
You are a legend! I managed to get it all working finally, Thanks so much for your help!
Jun 7 '17 #5
NeoPa
32,556 Expert Mod 16PB
Very happy to help Bryan. It's what we try to do here :-)
Jun 7 '17 #6

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

Similar topics

0
by: steveradaza | last post by:
Sir,Good Day..I am a newbie here and i am just learning the usage of microsoft access..can you help me solve my problem in making a running balance in a query of microsoft access 2013 of my In and...
5
by: jimatqsi | last post by:
I'm looking for information about compatibility between Access 2013 and Access 2003. I've been approached by a firm that wants to begin upgrading their systems. I want to know if it is reasonable...
4
by: ESAKKI109 | last post by:
In Microsoft access 2013 how can I set new record as a default without VBA coding and macro when form opens?
1
by: Jasm1234 | last post by:
Hi, We recently tried to move our Access database from a file to another and somehow corrupted or changed the settings to the file. Originally, multiple users can access and this is without the...
6
by: GKJR | last post by:
I have been using Access 2013 (in Office 365) with Windows 8.1 for about a month and a half now. I was a little reluctant to switch from 2010 on Windows 7, but I figured I should try stay ahead of...
2
by: edkreuz | last post by:
I have moved a database from work to home and it went from 2010 to 2013. Most of my fields are functioning correctly in my forms, but I have one field that is a combo dropdown that will not display...
6
by: deamond | last post by:
is it possible to add multiple records in one Outlook Reminder? I need to set an Outlook task reminder containing list of workers who need to extend their working contracts three months before it...
1
by: Benniit | last post by:
Please I'm using vb.net 2013 and Microsoft office 2013. The below code is able to display the datagridview into excel 2007. But the code does not display onto excel 2013 and no error gets...
1
by: msilva100 | last post by:
Is it possible to split a Runtime MS Access 2013 database? I am on a Windows 7 server. I have one license of MS Access 2013. But I would like distribute this application to 5 client workstations. ...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.