473,473 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

90 Day Popup

50 New Member
Hello I am pretty new to building Access databases. I am in the process of creating a database for a customer of mine. Would anyone be able to assist me in creating a popup reminder that will appear 90days after a record as has been entered?

Thank you
Aug 20 '07 #1
12 1879
Rabbit
12,516 Recognized Expert Moderator MVP
How much do you know about VBA or macros? You're going to have to use one or the other.

Basically you do a count of all records that occured 90 days prior and if the count is larger than 0, you open a form.
Aug 20 '07 #2
ali3n8
50 New Member
I am not really familiar with vba and macros. I know what they are and what they do and how some task are accomplished. Im sure with the proper information or guidance i could figure it out. Only thing I have ever done with vba is create a script to automatically install printers for my employer.
Aug 20 '07 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Well, the basic set up is this:

1) You have a main menu form that opens when the database opens. This is set up through Tools > Startup.

2) In the On Open event of the form, runs a DCount (the help files can give you the syntax for that).

3) If the DCount is larger than 0, then you would use DoCmd.OpenForm (the help files can give you the syntax for this as well).
Aug 20 '07 #4
FishVal
2,653 Recognized Expert Specialist
Hello I am pretty new to building Access databases. I am in the process of creating a database for a customer of mine. Would anyone be able to assist me in creating a popup reminder that will appear 90days after a record as has been entered?

Thank you
Hi, there.

Did you mean popup appearing for each record when 90 days elapsed after it's creation or popup when 90 days elapsed after creation of a last record?
Aug 20 '07 #5
ali3n8
50 New Member
I would like the prompt to appear for each record that has reached the 90day threshold. My customer would like to intiate a callback to his customers from this list.
Aug 20 '07 #6
MGrowneyARSI
90 New Member
1. Start Microsoft Access and create a new database called Appt.mdb.
2. Create the following new table in Design view: Table: tblAppointments
--------------------------
Field Name: Appt
Data Type: Text
Field Size: 50
Required: Yes
Field Name: ApptDate
Data Type: Date/Time
Format: Short Date
Required: Yes
Field Name: ApptTime
Data Type: Date/Time
Format: Medium Time
Required: Yes
Field Name: ApptLength
Data Type: Number
Field Size: Long Integer
Default Value: 15
Required: Yes
Field Name: ApptNotes
Data Type: Memo
Field Name: ApptLocation
Data Type: Text
Field Size: 50
Field Name: ApptReminder
Data Type: Yes/No
Field Name: ReminderMinutes
Data Type: Number
Field Size: Long Integer
Default Value: 15
Field Name: AddedToOutlook
Data Type: Yes/No

Table Properties: tblAppointments
---------------------------------
PrimaryKey: ApptDate;ApptTime

NOTE: In this example, the primary key in the appointment table is the appointment date and time. You can remove or alter the primary key if you want to be able to add multiple appointments for the same date and time.
3. Create a reference to the Microsoft Outlook 8.0 Object Library. To do so, follow these steps: a. Create a new module.
b. On the Tools menu, click References.
c. Click Microsoft Outlook 8.0 Object Library in the Available References box. If that reference does not appear, click Browse to locate the Msoutl8.olb file, which is installed by default in the C:\Program Files\Microsoft Office\Office folder.
d. Click OK in the Reference dialog box.
e. Close the module without saving it.

4. Use the AutoForm: Columnar Form Wizard to create a new form based on the tblAppointments table. Save the form as frmAppointments.
5. Open the form in Design view and change the following properties: Form: frmAppointments
-------------------------
Caption: Appointment Form

Form Header:
Height: .5"
Check Box: AddedToOutlook
Enabled: No


6. Add a command button to the Form Header section, and set the following properties: Command Button:
Name: AddAppt
Caption: Send to Outlook
OnClick: [Event Procedure]


7. Set the OnClick property of the command button to the following event procedure: Private Sub AddAppt_Click()
On Error GoTo AddAppt_Err
' Save record first to be sure required fields are filled.
DoCmd.RunCommand acCmdSaveRecord
' Exit the procedure if appointment has been added to Outlook.
If Me!AddedToOutlook = True Then
MsgBox "This appointment already added to Microsoft Outlook"
Exit Sub
' Add a new appointment.
Else
Dim outobj As Outlook.Application
Dim outappt As Outlook.AppointmentItem
Set outobj = CreateObject("outlook.application")
Set outappt = outobj.CreateItem(olAppointmentItem)
With outappt
'outappt.RequiredAttendees
'outappt.OptionalAttendees
.Start = Me!ApptDate & " " & Me!ApptTime
.Duration = Me!ApptLength
.Subject = Me!Appt
If Not IsNull(Me!ApptNotes) Then .Body = Me!ApptNotes
If Not IsNull(Me!ApptLocation) Then .Location = _
Me!ApptLocation
If Me!ApptReminder Then
.ReminderMinutesBeforeStart = Me!ReminderMinutes
.ReminderSet = True
End If
.Save
End With
End If
' Release the Outlook object variable.
Set outobj = Nothing
' Set the AddedToOutlook flag, save the record, display a message.
Me!AddedToOutlook = True
DoCmd.RunCommand acCmdSaveRecord
MsgBox "Appointment Added!"
Exit Sub
AddAppt_Err:
MsgBox "Error " & Err.Number & vbCrLf & Err.Description
Exit Sub
End Sub


8. Save the form and open it in Form view. Add an appointment record, and then click the Send To Outlook button. Be sure you only enter minutes, not hours and minutes, in the ApptLength field.
9. Start Microsoft Outlook and click Calendar on the Go menu to view the appointments you added.


Works great if they are using MS outlook
Aug 20 '07 #7
FishVal
2,653 Recognized Expert Specialist
I would like the prompt to appear for each record that has reached the 90day threshold. My customer would like to intiate a callback to his customers from this list.
Would it be more suitable to simply build a query returning records reached 90 day threshold?
Aug 20 '07 #8
ali3n8
50 New Member
A query sounds like it would be easier to achieve this. Now from what I understand a query will basically search my database and find the predifined information. Will it require any user input? I just want him to be able to click a button and all the record that have met the 90day criteria be listed.
Aug 20 '07 #9
FishVal
2,653 Recognized Expert Specialist
A query sounds like it would be easier to achieve this. Now from what I understand a query will basically search my database and find the predifined information. Will it require any user input? I just want him to be able to click a button and all the record that have met the 90day criteria be listed.
It will require button click only.
The only thing you should think about is criteria to recognize those records that have been already treated to exclude them from the reminder query.
Aug 20 '07 #10
ali3n8
50 New Member
I have general Idea of what I can do to solve this issue. All I need is an expression that will calculate 90days from when the record was entered. Can anyone help with this? Also the expression must be able to account for leap years.
Aug 21 '07 #11
FishVal
2,653 Recognized Expert Specialist
I have general Idea of what I can do to solve this issue. All I need is an expression that will calculate 90days from when the record was entered. Can anyone help with this? Also the expression must be able to account for leap years.
I'd like to suggest you to calculate days elapsed from record creation day till current date and compare the result with 90. See DateDiff and Date functions in Access help.
Aug 21 '07 #12
ali3n8
50 New Member
Thanks so much I finally decided to go with the DateAdd function and used this formula to calculate 90days =DateAdd("m",3,[Date]). Now i just have to create a report or query to extract this info..
Aug 21 '07 #13

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

Similar topics

1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
1
by: CG | last post by:
Hi, I have an ASP application. On one of my pages I have a link to a popup. This popup has a link. When the user clicks this link my popup closes and another Popup is displayed. In this...
1
by: Ben Wan | last post by:
I got 2 error from the following code below... 1. I couldn't load up the picture since the picture is at (C:\company\image\largePic.jpg) 2. I got a page error in my 'index.html' when calling...
15
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
2
by: VMI | last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of Page1.aspx. How can I add server-side code...
4
by: jobs | last post by:
the javascript: function ShowTooltip(L1in) { document.getElementById("L1").innerText=L1in; y = event.clientY + document.documentElement.scrollTop; var Popup= document.getElementById("Popup")...
3
by: cmo | last post by:
Well I hope I this isn't too nebulous of a problem. The problem I currently have is this: I have a button in a form that opens up a javascript/css poup that has an input field and two ahref links...
1
by: Mike1961 | last post by:
Hi everyone. I have problem with this function javascript: var popup = null; function OpenPopup(fld, tbl, col, w, h) { var pw = Math.floor((screen.width - w) / 2);
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.