E
ericb
On a form is a populated list and command buttons. One of them is to e-mail a
report.
Everything works well except for one detail, I can use the
lettre_introduction file as the template to the body of the e-mail in Outlook
The file lettre_intrduction is a htlm file.
Here is my code :
If Forms![Home Base]![cmdClient].Enabled = True Then
strRapport = "Rapport client" ' Le rapport
à utiliser
strDestinataire = Forms![Home Base]![Liste Client HB
subform].[Form]![nom_client]
Else ' Le client à qui e-mailer
If Forms![Home Base]![cmdMedecin].Enabled = True Then ' E-mail Ã
un docteur
strRapport = "Rapport medecin" 'Le rapport
à utiliser
Else
strRapport = "Rapport suggestion"
End If
' Le doc à qui e-mailer
strDestinataire = frmSelect.Column(lngNocolumn_doc_ListProduit,
lngChoix)
End If
' E-mail le rapport
DoCmd.SendObject acSendReport, strRapport, , strDestinataire, ,
, "Un rapport de consultation", , True, "C:\Users\Eric\Documents\Base Données
Patients\lettre_introduction"
The path is OK
What am I doing wrong ?
Thank you
report.
Everything works well except for one detail, I can use the
lettre_introduction file as the template to the body of the e-mail in Outlook
The file lettre_intrduction is a htlm file.
Here is my code :
If Forms![Home Base]![cmdClient].Enabled = True Then
strRapport = "Rapport client" ' Le rapport
à utiliser
strDestinataire = Forms![Home Base]![Liste Client HB
subform].[Form]![nom_client]
Else ' Le client à qui e-mailer
If Forms![Home Base]![cmdMedecin].Enabled = True Then ' E-mail Ã
un docteur
strRapport = "Rapport medecin" 'Le rapport
à utiliser
Else
strRapport = "Rapport suggestion"
End If
' Le doc à qui e-mailer
strDestinataire = frmSelect.Column(lngNocolumn_doc_ListProduit,
lngChoix)
End If
' E-mail le rapport
DoCmd.SendObject acSendReport, strRapport, , strDestinataire, ,
, "Un rapport de consultation", , True, "C:\Users\Eric\Documents\Base Données
Patients\lettre_introduction"
The path is OK
What am I doing wrong ?
Thank you