antonyx
Arsenal Supporter
- Local time
- Today, 21:17
- Joined
- Jan 7, 2005
- Messages
- 556
i was told that i didnt need to store the string value day.. eg.. monday.. tuesday.. because access can retreive the day based on the date..
so...
i have a textbox on my form that displays the date as follows..
23/12/2006
i am basically creating a html email and at the moment i use the following..
the email displays the date as it stands in the textbox..
is there a standard method in access i can use to convert..
23/12/2006 to Saturday 23rd December 2006??
so...
i have a textbox on my form that displays the date as follows..
23/12/2006
i am basically creating a html email and at the moment i use the following..
Code:
Option Compare Database
Private Sub Command254_Click()
'References: Oulook Library
Dim strEmail, strSubject As String, strBody As String
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
strEmail = Me.txtbookeremail
strBody = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'><html><head>" & _
"<meta http-equiv='Content-Language' content='en-gb'><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head><body>" & _
"<p>" & Me.txtjobdate & "</p></body></html>"
strSubject = "London Heathrow Cars - Booking Confirmation"
With objEmail
.To = strEmail
.Subject = strSubject
.HTMLBody = strBody
'.Send 'Will cause warning message
.Display
End With
Set objEmail = Nothing
End Sub
the email displays the date as it stands in the textbox..
is there a standard method in access i can use to convert..
23/12/2006 to Saturday 23rd December 2006??