Bolding font in Lotus notes

Indigo

Registered User.
Local time
Today, 15:46
Joined
Nov 12, 2008
Messages
241
I am running Access 2003 and have created a module which sends an email to recipients from the database in Lotus Notes. It works just fine, but now I have been asked to "Bold" specific text in the email so that it is easier to read on their blackberries :o. Can anyone help me format the text? I'm not sure how to do this.... Here is the code I am using:

Code:
Public Sub SendQtrNotesMail(Subject As String, Recipient As String, WL As String, SQA As String, _
DC As String, ADR As String, TDR As String, SafetyNote As String, QualityNote As String, _
ProdNote As String, SaveIt As Boolean)
'Set up the objects required for Automation into lotus notes
    Dim Maildb As Object 'The mail database
    Dim UserName As String 'The current users notes name
    Dim MailDbName As String 'The current users notes mail database name
    Dim MailDoc As Object 'The mail document itself
    Dim Session As Object 'The notes session
    Dim EmbedObj As Object 'The embedded object (Attachment)
    'Start a session to notes
    Set Session = CreateObject("Notes.NotesSession")
    'Get the sessions username and then calculate the mail file name
    'You may or may not need this as for MailDBname with some systems you
    'can pass an empty string or using above password you can use other mailboxes.
    UserName = Session.UserName
    MailDbName = Left$(UserName, 1) & Right$(UserName, (Len(UserName) - InStr(1, UserName, " "))) & ".nsf"
    'Open the mail database in notes
    Set Maildb = Session.getdatabase("", MailDbName)
     If Maildb.ISOPEN = True Then
    'Already open for mail
     Else
         Maildb.openmail
     End If
    'Set up the new mail document
    Set MailDoc = Maildb.createdocument
    MailDoc.Form = "Memo"
    MailDoc.sendto = Recipient
    MailDoc.Subject = Subject
    MailDoc.Body = WL & vbCrLf & SQA & vbCrLf & DC & vbCrLf & ADR & vbCrLf & TDR & vbCrLf & vbCrLf & _
    SafetyNote & vbCrLf & QualityNote & vbCrLf & ProdNote
    MailDoc.SaveMessageOnSend = SaveIt
    'Send the document
    MailDoc.PostedDate = Now() 'Gets the mail to appear in the sent items folder
    MailDoc.Send 0, Recipient
    'Clean Up
    Set Maildb = Nothing
    Set MailDoc = Nothing
    Set Session = Nothing
    Set EmbedObj = Nothing
End Sub

And:

Code:
Sub SendEmail()
Dim stTotw As String
Dim HoldWL As String
Dim HoldSQA As String
Dim HoldDC As String
Dim HoldADR As String
Dim HoldTDR As String
Dim HoldSafetyNotes As String
Dim HoldQualityNotes As String
Dim HoldProdNotes As String
HoldWL = "[B]Waterleak:[/B]  " & Forms!frmAMQtr!WL.Value
HoldSQA = "[B]SQA:[/B]  " & Forms!frmAMQtr!SQA.Value
HoldDeltaC = "[B]DC:[/B]  " & Forms!frmAMQtr!DC.Value
HoldADR = "[B]A DR:[/B]  " & Forms!frmAMQtr!ADR.Value
HoldTDR = "[B]Total DR:[/B]  " & Forms!frmAMQtr!TDR.Value
HoldSafetyNotes = "[B]Safety Issues & Details:[/B]  " & Forms!frmAMQtr![subfrmAMQtrNotes].Form!AMSafetyNote.Value
HoldQualityNotes = "[B]Quality Issues & Details:[/B]  " & Forms!frmAMQtr![subfrmAMQtrNotes].Form!AMQualityNote.Value
HoldProdNotes = "[B]Productivity Issues & Details:[/B]  " & Forms!frmAMQtr![subfrmAMQtrNotes].Form!AMProdNote.Value
stTotw = "[EMAIL="myboss@abc.ca"]myboss@abc.c[/EMAIL]om"
    Call SendQtrNotesMail("Test Email", stTotw, HoldWL, HoldSQA, HoldDC, HoldADR, HoldTDR, _
    HoldSafetyNotes, HoldQualityNotes, HoldProdNotes, True)
 
End Sub

What I have Bolded above is what my management wants to see bolded in the email. Can anyone point me in the right direction on how I can accomplish this?
 
You need to send as RichText or HTML and not plain text which it defaults to.
 
Okay.... but I don't know how to do that? :o
 
I'm even more lost....:confused:

this is a big learning curve for me..... sorry.....

These two examples are way over my head.....
 
If that is over your head then I think you're going to have to live with what you currently have. The bolding will have to come at a later time.
 
I'm not expecting you to do the work for me. I'm just looking for direction and where you sent me didn't really help me because the coding was not along the same lines as what I already have. I am still quite new to VBA and I cannot just make do as you suggested.

I provided the coding I am using in the hopes that you could show me how, within the confines of that code, I would change the default text in order to bold the "headings" I have. Not direct me to something completely different and leave me to sink or swim.

I usually get a lot more support from this forum. I am really disappointed.
 

Users who are viewing this thread

Back
Top Bottom