Schedule next appointment automaticly

bonekrusher

Registered User.
Local time
Today, 02:48
Joined
Nov 19, 2005
Messages
266
Good Day everyone,

I am looking at setting up appointments and having Access automaticly schedule the next appointment in either 6 months or a year depending on the Vender. I've search the forum and can't find anything.

For Example if their last appointment was 12-1-05 I would like access to automaticly schedule the next appoint 12-1-06.

Any ideas?

Thanks,
 
Try looking under "Calculating a future or past date in Access" in Access help
Think you will find it is a bit of a doddle
Good luck
 
Thanks, I found it on MS site. Works great: For anyone interested in this:

In Access, you can calculate a future or past date from a starting date by using an expression. For example, you can enter a date in a control on a form and calculate a date that is six months in the future from the original date. This article demonstrates this technique by using the DateSerial function to calculate the future date in the controls on a form. The calculated date can then be used in other calculations.

To calculate a future date by using the DateSerial function

1. In the Database window, click Forms under Objects, and then click New.
2. In the New Form dialog box, click Design View, and then click OK.
3. Using the Text Box tool in the toolbox, add two unbound text boxes to your form.
4. Set the Name property for one text box to StartDate and the other to FutureDate.
5. Set the Format property for the StartDate text box to Short Date.
6. Set the Control Source property for the FutureDate text box to the following expression:

=DateSerial(year([StartDate]), month([StartDate])+6, day([StartDate]))


7. Switch to Form view.
8. In the StartDate text box, type a date (mm/dd/yy), and then press the TAB key.
The value displayed in the FutureDate text box is six months after the date in the StartDate text box.

Inserting a plus (+) followed by a number after the year, month, or day in the appropriate part of the function calculates a date that number of units in the future. Inserting a minus (-) followed by a number in the appropriate part of the function calculates a date that number of units in the past.
 
Actually, using DateAdd() is a bit more straight forward.

Typically you would use this in a calculated field in a query, though you might use it to append a new record to a table in an append query.
 
Thanks, may be you can clarify? I have a query with 2 fields "Start" and "next".
Say the "start" value is 12/30/05. I want the query to calcualted 1 year later to 12/30/05 in the "next" field. How to I use the DateAdd() function in the Query?
 
Thanks, may be you can clarify? I have a query with 2 fields "Start" and "next".
Say the "start" value is 12/30/05. I want the query to calcualted 1 year later to 12/30/05 in the "next" field. How to I use the DateAdd() function in the Query?
 
It's something like DateAdd("yyyy", 1, [Start])
Might need to play with it since I think the interval is "yyyy"
HTH
Good luck
 
Thanks but I am having trouble with the query. where do I place the Dateadd function in the query?
 

Users who are viewing this thread

Back
Top Bottom