First you need to connect the two programs by opening a module and selecting TOOLS, REFERENCES, and then clicking the MS OutLook Objects 8.0 to allow you to call the object in the code then you will need to create the object and assign the tasks something like below:
This code will assign the task for the user and checks the dates so nothing comes up on a weekend. you shoul dbe able to adapt this to what you need....
Dim outobj As Outlook.Application
Dim outAppt As Outlook.TaskItem
Dim outMail As Outlook.MailItem
Dim dte As Date
Dim remindr As Date
dte = DateAdd("d", 5, Date)
remindr = DateAdd("d", 4, Date)
If DatePart("w", dte) = 1 Or DatePart("w", dte) = 7 Then
If DatePart("w", dte) = 1 Then
dte = DateAdd("d", 1, dte)
ElseIf DatePart("w", dte) = 7 Then
dte = DateAdd("d", 2, dte)
End If
End If
If DatePart("w", remindr) = 1 Or DatePart("w", remindr) = 7 Then
If DatePart("w", remindr) = 1 Then
remindr = DateAdd("d", -2, remindr)
ElseIf DatePart("w", remindr) = 7 Then
remindr = DateAdd("d", -1, remindr)
End If
End If
On Error Resume Next
Set outobj = CreateObject("Outlook.Application"

'Add new reminder
Set outAppt = outobj.CreateItem(olTaskItem)
Set outMail = outobj.CreateItem(olMailItem)
With outAppt
.Subject = "Reconciliations due for client " & Me!Label16.Caption
.DueDate = dte
.ReminderTime = remindr
.ReminderSet = True
.Save
End With
With outMail
.To = strAdmini
.CC = Forms!Main!lblMgr.Caption
.Importance = olImportanceHigh
.Subject = "Reconciliations for client " & Me!Label16.Caption
.Body = "Recs are due on " & dte
.Send
End With
Set outobj = Nothing 'release outlook
MsgBox ("Your reconcilications for the client are due on " & dte)
Exit Sub
End Sub
best of luck
Bastien