473,698 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

date in subjectline for automated email

I'm needing to place today's date in the subject line of an email using
the following example:

DoCmd.SendObjec t acSendReport, "This Is My Subject Line", acFormatRTF,
_

Can anyone show me how to place the date so that it reads: This Is My
Subject Line - 09/15/2006 (?)

Thanks in advance!

Sep 15 '06 #1
2 3661

Parasyke wrote:
I'm needing to place today's date in the subject line of an email using
the following example:

DoCmd.SendObjec t acSendReport, "This Is My Subject Line", acFormatRTF,
_

Can anyone show me how to place the date so that it reads: This Is My
Subject Line - 09/15/2006 (?)

Thanks in advance!
"Some subject - " & format(date,"mm/dd/yyyy")

read up on Format in Help. (if you're like MLH, it's carefully hidden
under the F1 key)

Sep 15 '06 #2
Thanks, this worked... is it possible to pass this data into the name
of the attached report? Here's my block of code:

DoCmd.SendObjec t acSendReport, "NameOfMyReport ", acFormatRTF, _
"EC*******@jugg ernaut.com", , , _
"NameOfMyReport : " & Format(Date, "mm/dd/yyyy") & " """ &
Forms!MyForm.My textbox & """", , False

the subject line reads correctly: NameOfMyReport: 09/15/2006 "Joe
Employee"

I would just like to pass the employee name and date into the name of
the attachment.. is this possible?
Thanks so much!
pi********@hotm ail.com wrote:
Parasyke wrote:
I'm needing to place today's date in the subject line of an email using
the following example:

DoCmd.SendObjec t acSendReport, "This Is My Subject Line", acFormatRTF,
_

Can anyone show me how to place the date so that it reads: This Is My
Subject Line - 09/15/2006 (?)

Thanks in advance!

"Some subject - " & format(date,"mm/dd/yyyy")

read up on Format in Help. (if you're like MLH, it's carefully hidden
under the F1 key)
Sep 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4309
by: Stefan Bauer | last post by:
Hi NG, we've got a very urgent problem... :( We are importing data with the LOAD utility. The input DATE field data is in the format DDMMYYYY (for days) and MMYYYY (for months). The target data format is european DD.MM.YYYY (for days) and 01.MM.YYYY (for months). The input format is not recognizable as a DATE input to a DB2 LOAD for
11
10616
by: Miikka Hamalainen | last post by:
Hi All, I'm making library db using SQL. I have date when book has been loaned (Date loaned) and date to return the book (Return date), which is 4 weeks. How can I get current date to show in Date loaned-field? How do I add 4 weeks to date loaned and can I do it in INSERT INTO-sentence?
1
1847
by: gostroff | last post by:
Hi, I have a lot of sample records done on different dates. It's easy to get the maximum value for any sample parameter for any sample location, but what if I want the date it was found? For example, if I have a thousand locations and 20 parameters measured at each loocation, and this sampling went on every day for a year, I want to get the maximum value for each parameter at each location, AND I want the data on which the maximum...
3
2189
by: Vivian Dunn | last post by:
Can anyone please help with what I am sure is actually a very simple question. In the charity, that I work for, I use a database which records the support that we give to our clients. One of the fields in the database records the start date of such support. I have a particular query that I wish to run monthly so that it lists all the clients whose support started during the previous month. In the initial version of the query, I used...
2
1262
by: Gene Ariani | last post by:
I have been asked to create an application to automatically send emails when a date is reached. These dates are in a table in a database. How would I approach this since I have never done something like this. Any direction is appreciated it. Thanks Gene
6
3052
by: brettev | last post by:
World, I work at a university where the professors have a system to input grades for assignments and calculate final grades, which is output to an excel file. they are then required to get on a different system and click radio buttons in a form to input final grades. i would like to automate this by doing some sort of automated form submission that grabs the information from the excel sheet and selects the correct radio button and then...
5
4917
by: Takeadoe | last post by:
Gang - I'm generating date and time variables from scanned forms. Currently, the date and time values are as follows: 06/26/2006 and 11:30 AM. I've written VBA code to combine them into a single string. The resulting variable - datetime - is exported automatically to Access. When it get's there it looks like "06/26/2006 11:30 AM". Problem is, it is a string. If I set up the database before it is populated with records and set the...
0
1343
by: tonydevlin | last post by:
I currently have the python code obj=sti.object creator = obj.Creator() history = sti.getHistory() wf_tool = context.portal_workflow mMsg = """ Content has been submitted for your review. The url was %s. The reason was %s.
7
1531
by: Jeff | last post by:
Hey ..NET 2.0 I'm on a project where I'm now about to develop the Data Access Layer. The database have 300 stored procedures. I'm about to go on a time consuming process of writing the .NET code which calls all these stored procedures. Each stored procedure should get it's own method in the Data Acess Layer..
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.