Hi, I am new to programming/coding, can someone please help me find the coding for the following question:
I have a table with a place to put in dates (Agreement Start Date).
I need a function to have a Notfication Message (like a warning box or save promp box) pop up 75 days after the given date (Start Date) prompting the user to check for something in the record. (i.e. to check to see if the client has paid yet.)
Can someone help me please, please :)
Much thanks in advance.
11 1322
There are many VBA tutorials out there. For example this one. Take a look at it, try it out and let us know if you have any questions.
Thank you, I will do a thorough search and if I need more help I will notify, thanks again.
Hello Rabbit, I checked everywhere, all I get is information on various MsgBoxes and their flags and captions.
After a thorough search throughout the internet I couldn't even find a sample code for what I am looking for.
Can you give me a push in the right direction with the correct code or whatnot?
Is this form in Datasheet, Continuous or Single View?
Welcome to TheScripts!
Linq ;0)>
Hi, thank you.
My form is not in continuous view, instead it is a Datasheet where by scrolling up or down (with the mouse scroll ball) the user can go from one record to another (I guess that is single view..??)
Thank you,
Arman
I'm looking for something along the lines of:
If DateAdd("d",+70,[Agreement Start Date]) Then
MsgBox("Check to see if they have paid", vbInformation)
or
Private Sub Command232_Click()
If "Agreement Start Date" = [Now() + 70] Then MsgBox = ("Check to see if they have paid")
End Sub
I would use the DateDiff function.
If DateDiff("d," date(),[Agreement Start Date]) >= 75 then
Enter your code
end if
Datasheet view looks like an Excel spreadsheet. Continuous view looks similar, but you can do more things with it. Single view, whcih I'm guessing is what you mean, is when one record can be viewed at a time. The view makes a difference in how you do things like this.
Ray had the right idea, but he switched the two dates around; you'd have ended up with a negative number since the [Agreement Start Date] is always going to be in the past. You need to place this code in the On Current event like this: - Private Sub Form_Current()
-
If DateDiff("d", Me.[Agreement Start Date], Date) >= 75 Then
-
MsgBox "Has This Account Been Paid?"
-
End If
-
End Sub
Linq ;0)>
Thank you raybettoni and missinglinq.
Your sheer brilliance knows no bounds!!!!
(ps I'm working on a database projects up until the end of my contract which is Jan 10, 2008, I may have some more questions until then. I don't usually work on Database and/or Programming contracts, so this is a first for me.)
Thank you again!
Glad we could help!
Linq ;0)>
Glad we could help. I am a contrator also. MS Access developmet. There is a good market here in my home city of Pittsburgh for IT contractors. 7 years and I have only been out of work for more then one month once.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: androtech |
last post by:
Hello,
I'm looking for a function that returns a date range for a specified week
number of the year.
I'm not able to find functions like this anywhere. Any pointers/help would
be much...
|
by: peashoe |
last post by:
I have an asp page that uses a calendar.js (pop-up) file to add an
exact date format in the text field (txtDDate). My problem is I need
some javascript that sets an alert that does not allow them...
|
by: Dr John Stockton |
last post by:
It has appeared that ancient sources give a method for Numeric Date
Validation that involves numerous tests to determine month length;
versions are often posted by incomers here. That sort of code...
|
by: Liz Malcolm |
last post by:
Hello and TIA. I have a DE form with an option group that if daily is
selected todays date is used for start and end date, if weekly is
selected Monday - Friday is used. I am trying to add a...
|
by: John Morgan |
last post by:
Does anyone know what parameter should be used instead of Date = 0 for the
optional parameter in the following function?
Public Function dhAge(ByVal dtmBD As Date, Optional ByVal dtmDate As Date...
|
by: Assimalyst |
last post by:
Hi,
I have a working script that converts a dd/mm/yyyy text box date entry
to yyyy/mm/dd and compares it to the current date, giving an error
through an asp.net custom validator, it is as...
|
by: Luvin lunch |
last post by:
Hi,
I'm new to access and am very wary of dates as I have limited
experience in their manipulation and I know if they're not done
properly things can turn ugly quickly.
I would like to use a...
|
by: dave |
last post by:
I need to compute an expiration date based on the number of hours,
days, or months purchased.
The expiration date needs to be expressed in minutes something like
'1260481600'.
How can I get the...
|
by: Jes |
last post by:
Dear all
I have a date field on a HTML form where the user is asked to key in
dd/mm/yyyy
However, when that is written to MySql it is either not accepted or
another value is tored in the...
|
by: murch.alexander |
last post by:
I made a simple public function to set and return a date value (see
below). I have a number of queries that call up the function to get
the "As Of Date," which is typically set to today's date....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
| |