Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Schedule reoccuring Dates 1

Status
Not open for further replies.

rccs1

Programmer
May 19, 2007
14
0
0
AU
Can anyone help me. I am trying to write an Access2003 db based on events. When the user enters a date for an event, I need to give the user the option of a once of event or option to create reoccuring events like MSOutlook recurrence where the user can say the event is every day, or once a week or once a month, etc.
I can't seem to find anyone who has created something similar for MSAccess.

Appreciate assistance or direction where to go?

 
You can use DateAdd and a recordset.
 
Hi Remou
Sorry can you give me an example.

Thanks
 
Ok.
Code:
Set rs=Me.RecordsetClone

rs.MoveLast
dteDate=Dateadd("ww",1,rs!appdate)

rs.AddNew
rs!appdate=dteDate
rs.Update



 
There is a sample mdb download at which shows how to create recurring scheduled events.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top