Emailing From Access (changing The <From>)

Aug 27, 2007

Hello,

From the searches of this site Ive got it down and working to send an email with attachment via access. Thanks

The one thing I cant find is how to change the "From". I don't want these emails send via my name but my department. I usually just change the <From> to the department name in Outlook and send.

I cant seem to figure out how to make it work in access.

FYI: I did it via a module

With objMailItem
.To = "emails"
.Subject = "subject"
.Body = "text"
.Attachments.Add "C:file.xls", olByValue, 1, "department report"
.Save
.Send

needless to say .From does not work.

View Replies


ADVERTISEMENT

Emailing From Access

Nov 24, 2005

I have a field within a table called E-Mail. I want to send a newsletter to everyone withing the DB. I have created some code which is as follows:


Private Sub testemailer_Click()
Dim rsEmail As DAO.Recordset

Dim strEmail As String
Set rsEmail = CurrentDb.OpenRecordset("QryStoresEmailticked")

While rsEmail.EOF = False
strEmail = rsEmail.Fields("E-mail").Value + ","

DoCmd.SendObject acSendNoObject, , , "jo.bloggs@k-n.com", , _
strEmail, _
"UK KNLogin NewsLetter", , True, ""

rsEmail.MoveNext
Wend

Set rsEmail = Nothing


End Sub

Now this works but it opens an individual email per email address into the BCC part. That a major problem if you have over 1000 contacts to send to. How do i get all my email addresses from my DB into the BCC of an email?

Any help would be much appreciated!

View 1 Replies View Related

Emailing From Access

Jan 30, 2006

Hello, I am looking for some help on what appears to me to be a very large problem. Hopefully, to others, it's an easy fix. I have a very large database that has several details, of which one is email address.

My report is structure to group first on the email address, 2nd on the cost center, and third on the exeption. I am emailing the report to each individual email on the report. I can get it this far, what I can't get is for the email to only mail out each part of the report that is strictly for that particular email address.

I know this isn't very clear, but right now the entire report goes to each email address, I only want specific pages to go. The kicker to it all is that if I set specific parameters the first time, then I would have to set them every time, because the report varies in length each time it is pulled.

Please helppppppp! Thank You

View 5 Replies View Related

Automatically Emailing From Access

Apr 9, 2006

Hi all i have a delemma

Im building a database that is required to send out a email once a week to selected parties informing them of what items will go out of date this week.

The main problem im trying to over come is the Automatic email.

Any help would be greatful

Mike

View 1 Replies View Related

HELP -Emailing MS Access Form

Mar 29, 2007

We are a facility maintenance company that do a variety of jobs for many commercial companies with a several different trade groups we have (electrical, hvac, plumbing, painting, masonry, etc...) Our Trade Group Managers submit estimates and budgets for the jobs they are bidding to. I created a database to store all those jobs so we can track what manager has bid to any certain job, what trades are involved, if it has been accepted-rejected-in progress-and such. As of now the managers turn a written (paper) form into me to submit an estimating inquiry request and I put it in the database and print them out a receipt of all the information they submitted to me along with an Inquiry Number (which is the primary key in the database)-then that is how we keep track of that particular bid-with that unique Inquiry Number assigned to it.
Now we are wanting to be able to have this all electronically. So the managers can submit an inquiry request electronically and get a receipt back electronically-either by email or online or whatever. On the form they fill out there are several different trades that are able to be checked off. After they are finished filling out the form I would like for there to be a button at the bottom to email that form to all the checked off trades. How do I go about doing that?

..any suggestions would be greatly appreciated.
Thank you so much!!

View 2 Replies View Related

Modules & VBA :: Emailing From Within Access?

Aug 29, 2014

I am trying to automate the process of sending a query result via email.

I have code that will export a query as an excel document, using DoCmd.SendObject, but it has the name of the query.

DoCmd.SendObject acSendQuery, "Dailyrpt", acFormatXLSX, email.address, , , "Daily Report", "This is today's report", -1, False (email.address would actually be the email address it is being sent to.)

I also have code that will export the query to excel and save it as a file, using DoCmd.OutputTo, where I was able to name it something meaningful to the end user, and include the date.

DoCmd.OutputTo acOutputQuery, "Dailyrpt", acFormatXLSX, "Z:FolderComplete as of " & Format(Date, "yyyymmdd") & ".xlsx"
Dim Foldername As String
Foldername = "Z:FolderComplete as of " & Format(Date, "yyyymmdd") & ".xlsx"
Shell "C:Program Files (x86)Microsoft OfficeOffice14EXCEL.exe """ & Foldername & "", vbNormalFocus

Is there a way to either send the saved (renamed) file or to include the current date as part of the SendObject command?

View 4 Replies View Related

Emailing From Access Database Via Outlook

Mar 13, 2006

Please help! I wish to set up an access database from which I can email mutiple contacts at once. I would like to send a pretty HTML message and, if possible automatically address each email personally, i.e. Dear John rather than Dear all.

I have experience with access but not sending emails from records stored in a database. My visualbasic is um...basic, but I can understand it if you're kind enough to explain in simple terms! Your advice would be most appreciated - I need ease of use and most importantly the personal touch of addressing each email to the individual.

Thanks! Look forward to a reply!

View 1 Replies View Related

Info Help: Emailing From Access Via Outlook

Jan 19, 2007

Hi to all!

I dont know if this is possible but can someone please suggest if this is possible and if so where I could find some info on how to do it or what I should be looking for in this group.

Can I set something up so that I can email from Outlook to all the customers in the query below?

I have an access database which I have creatged a query that pulls results from a table with 100 customers in it.

Lately I have been cutting and pasting information from the database and email every customer individualy.

An example would be as follows.
------------------------------------------------------------------------------
Dear JOHN,
Your listing with us contins the following results...
CAT
DOG
MOUSE
Your listing has been viewed 10 times.
------------------------------------------------------------------------------

The text in capitals are results from three colums in the database.
Colums are called
Name: JOHN
Email:JOHN@THEPETSHOP.COM
Result: CAT, DOG & MOUSE
Search Result: 10

Can I set something up so that I can email from Outlook to all the customers in the query above?

Where can i look to learn how.

Cheers
Mally

View 1 Replies View Related

Modules & VBA :: Exporting And Emailing From Access

Jul 18, 2013

i am very new to access, but i can code in excel well.what i really want to do is no how to automatically email a report, query or table. I also would like to be able to export the above three to excel as well. I have worked my way up a little bit but my hair is falling out with how hard this is to achieve. I have come up with the following so far:

Code:

Dim outputFileName As String
Dim oXL As Object
Dim oExcel As Object
Dim sFullPath As String
Dim sPath As String

[code]...

The above code works a bit, but it only allows me to export tables (dont know how to modify it). It also doesnt open the table in excel properly, it opens excel, but the table doesnt open. I have to go to the location and manually open it.

View 6 Replies View Related

Emailing A Preset Email Draft From Access

Jan 12, 2012

In my database, I need to have a button on a form which when pressed (1) pulls the email address from the displayed record on that form, (2) loads an Outlook instance, (3) in that Outlook instance, load a drafted email for editing and sending.

More detailed: My form, frmReferrals, contains the email address of a contact. I need to have a button, cmdEmail, which loads the email address of the displayed record in an Outlook instance. Ideally, I would like the loaded Outlook instance to pull some other information from the form. For example, I would like it to pull the name of the contact and display it.

Something like this:
"Dear " & [FirstName] & " " & [LastName] & ","
Leads to this:
"Dear John Smith,"

There would be a lot more text in the email with other information to input automatically. I would prefer to use as little coding as possible... but I suspect that all of this will have to be done with coding.

View 2 Replies View Related

Reports :: Emailing A Record / Report / Form From Within Access

Aug 7, 2015

My database is stores information about students such as name, student number, programme, email, etc. I have a STUDENT form with this information visible.

I also have a another table and MARKS sub form that contains the details of courses completed by the student and results. I have placed the sub form in the STUDENT form and can see each student's details and a list of their courses.

I want to be able to send this information to the relevant student via email. The student should only receive his information and no one else's.

Can this be done? Do I need to create a report first? Should I be using WORD to produce the emails?

View 1 Replies View Related

Modules & VBA :: Word Naming And Emailing Attach From Access 10?

Apr 21, 2015

I need to create a word file (it needs to be word) based on template (not a very complicated template) max 1 to 1 and 1/2 pages long.

the word doc needs to be named from the recordset but for now assume 12345.doc and the next one will be 12346.doc etc (I have a unique number system - available from tables /query .

i can either make the word doc in code or use a template (template would be better) recordset could have 20-30 in it each time i run it - but to be run every week

second half is how to email this out. i had in mind a email system

email to . test@testhotmail.xyz
file attach = this folder where the docs are store and attach 12345

in a loop

so either

create word file - email word file in a loop each time or create all the word files and then send them individual

View 4 Replies View Related

General :: Emailing From Access - Individual Records To Individual Emails

Jan 8, 2015

I have a database where I record grades for my students. I would like to create a macro so that every time I record a grade as an "F", the student will receive an email that will contain an attachment of their scores. A lot of the information I want to include in this email is in several different tables. So to make it easier, I have created a query that lists the following:

Students name (SName)
Student's email (SEmail)
ID# of the form I use to record their grades (ID)
ID# of the studen'ts work (WorkID)
Date of their work (CreatedDate)
Date I graded their work (AuditDate)
Grade="F" (Accuracy)

How can I create something that will automate emailing of this information--to the individual student with only their information? I am using Access 2010. If I can't automatically send the emails, I would like to create a button in my audit screen that will send a report containing that student's information to them.

View 1 Replies View Related

Access Keeps Changing My Joins

Dec 4, 2007

Good day all

I have a simple query linking two tables using the primary keys from each. The problem is that every time I go into design mode of the form that uses the query to populate a list box I get a Data Type Mismatch error and when I look at the query, Access has changed the join from the Pk in one table to the field after the PK in the other field. I have attached an image to show the change. Note that the join should be from the first fields on each table. I am really stuck with this guys, it is gettin me down and preventing me from developing the database further and my boss is on my case. Can anyone please help me? I have checked all the table relationships and they are fine. Thank you.

Gareth:(

View 13 Replies View Related

Changing Forms To Access Pages?

Oct 11, 2005

I would like to change my Forms to Access Pages, Therefore they can be used like webpages. I converted them in access, however the command buttons dont work. Anyone have any ideas? Also I have been looking everywhere for any information on adding the ability to use a writing tablet with my access program. any ideas here? Thanks for your help :)

View 2 Replies View Related

Changing Button Colours In Access

May 19, 2006

Does anyone know if the command buttons in access 97 forms can be changed?

thanks

View 4 Replies View Related

General :: Changing The Form Name In VBA Access?

Jul 29, 2013

how am I suppose to change the form name in the forms in VBA access, now see I would not want to change the names by using the coding.

Please note that I have got so many forms, however I have worked with the default names to start some of them would be, form1, form2 Now, when I am trying to follow the best practice approch, by changing the form name by right clicking and hitting rename, I am unable do so as it is popping up and giving me a statement as below.

"The form name 'Form2' is missspelled or refers to a form that does not exist" and continued in the next line as below

"if the invalid form name is in macro, an Action failed dialog box will display the macro name and the macro's arguments after you click OK. Open the Macro window, and either the correct name."

View 2 Replies View Related

Changing Date From Excel To Access

Aug 21, 2012

I have in a cell in Excel: MM/DD/YYYY...I want to add it to my Access database as: YYYY/MM/DD...This is what I have so far in Excel VBA. It is giving me a date error. I have tried both as MM/DD/YYYY still did not work.

Code:
n=1
accDateSub="01/01/2011"
Dim conn As New ADODB.Connection
conn.Open ConnectionString:="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:pathfile1.accdb;"
thisSQL = "INSERT INTO [Table1] VALUES (" & n & ", #" & Format(accDateSub, "yyyy/mm/dd") & "#);"
conn.Execute CommandText:=thisSQL

View 7 Replies View Related

Need To Merge Changing Databases Into One On Access

Sep 27, 2012

I have to coordinate a dbase in the US, one in the UK, and one in the KSA. I have multiple documents that may, or may not, be in each of the three dbases. I need to merge all three, and maintain them so that the document additions, as well as any changes associated with that document, (i.e. "revisions"), are updated. Having looked at access and having read through some of the Access forum questions, I understand that it can do that, but after having identified the information from the dbases that will go into access, I'm trying to establish a consistant process for maintaining and updating it. Can I export my information from each of the dbases, into an excel spreasheet, (1 for US, 1 for UK, and 1 for SA), and have the access dbase search for the document number, compare the data following the document number, and if it's the same ignore it, and if it's different, update it?

I'm trying to muddle through this and get access and excel to do as much of this as possible, as it's a very tedious and time consuming process to manually check each one, one or two times a week.

View 8 Replies View Related

Changing Case Of Data Already In Access Tables

Dec 8, 2006

My database is now live within our office and is working fine.

The databases which I have imported the data from, where done by my dad, who being old fashioned, used CAPS for everything he typed. So for quite alot of the data, its all caps, and it would be great, but not essential if we could revert the text to normal sentences.

Is there any trick or code that I could run that would go through certain tables and reformat the text in to a better format??

View 6 Replies View Related

Changing A Desktop Database To A Access Project

Dec 17, 2007

I built a database application, and I need for more than just myself to use it at the same time. I have just learned that I should have built a project instead. Can I change my application "Maintenance.mdb" to a project or do I have to start over?

View 5 Replies View Related

Changing Access Code Page On Web Server

Oct 10, 2004

When I send a database to server it changes all of my special charters to unicod charterset, I suposed that server is on american charter set, I would like it to change to central europien windows - 1250 code page, is it posible and how? it is very importand to me.
thx

View 1 Replies View Related

General :: Changing Hyperlinks In Access Table

Dec 13, 2012

I'm having a problem changing the hyperlinks in my access table.the hyperlinks point to locations of various documents on the server i.e. Server Quality DocumentsDoc1.docx

we have 2 domains at work so on one domain the hyper link works but on the other it doesn't.I did a find and replace so i have formatted all hyperlinks as such..Server.mydomain.localQualityDocumentsDoc1.doc x

However, this approach hasn't worked as it has only altered the 'text to display' and not the actual address (if i right click the hyperlink -> edit hyperlink the address is still ServerQualityDocumentsDoc1.docx).Is there away to change the Address fields of all the hyperlinks in one go?

View 14 Replies View Related

Tables :: Changing Multiple Records Using MS Access?

Aug 28, 2013

I am connecting to a table in our accounting software using MS Access ODBC Connection. I would like to change the value in a table for every record in the table 7,000+. In the latest version of the software a new field was added to the Vendor Table that by default is unchecked. I would like to have this field checked for each vendor. Is there a way that I can change all the records at once instead of going row by row to make the changes?

View 1 Replies View Related

General :: Access DB On Network Changing To Read Only?

Jun 13, 2013

I have a small Access DB (multi-user) on a network that keeps turning into a read-only DB, with a message bar saying please save as . . . and it will not let you complete that. It seems to lock the application, and when I can get everyone out and copy the file out I can finally get it back to its normal state.

View 3 Replies View Related

Stop Access From Changing Data Importing Through VB6

Sep 11, 2011

I have an Access 2000 database in which i am importing some data programmatically through VB6. However for some reason Access is changing the data that i am sending it (i know it's access doing it as a manual import does the same thing)

Example data (dashes signify different columns 4 total)

8/31/11 - 08:30:45 - 1 - 003

this gets changed by access to

8/31/11 - 8:30:45 AM - 1 - 3

Note it changed the time to am/pm format and my 003 became 3 . I have all the database fields set as TEXT and not numbers / date & time so I would think that it would treat the data literally however that is not the case and my data gets messed up.

How do i tell access to stop messing with the data and treat it literally and not change anything ?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved