473,440 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,440 software developers and data experts.

email failure when sending record

Arvo,

I've got the following code which is used to send details of a
specific record, as rich text, to authorised persons requesting they
then approve/action the necessary information.

Private Sub Command1217_Click()

Dim stDocName As String
Dim stLinkCriteria As String
On Error GoTo email_Err

MsgBox ("By clicking on this button, you will both save and e-mail
the current Reject record."), vbOKOnly

DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, ,
acMenuVer70

stDocName = "Reject_Report_1"
stLinkCriteria = "[NCR]=" & "'" & Me![NCR] & "'"

DoCmd.SendObject acReport, "Reject_Report_1",
"RichTextFormat(*.rtf)", "", "", "", "NCF Reject Report", "A Reject
form has been generated from a raised NCF and actions have been
allocated to you. Please review the NCF database for full details. ",
True, ""

email_Exit:
Exit Sub

email_Err:
MsgBox Error$
Resume email_Exit

End Sub

OK, it may not be pretty, but it works quite well so I figured why
play with it. Anyway, of late out IT mob have been upgrading those on
Office XP to Office 2003 which has been causing me a few headaches.
Till they upgraded, the above code was working like a treat. However,
now either the text string that is supposed to be included in the
message either does not come up when the message is generated, it only
pops into the message when it's sent, or it just does not show up at
all! Most people do not seem to care that it's started to happen,
however Senior Managers are potentially going to get grumpy and I need
to work out how to fix it. IT are of no help (so far). Nor can I
work out why some users application stops responding if they cancel
sending the message. Again, some PC's just hang, others close the
send window etc OK.

I've got the users I know of to "allow" and run all the code when they
start Access, however it's still hit and miss. Right now, it seems
it's got something to do with the Access security and Sandbox stuff
they've set up, but working around it is seemingly impossible. I have
not yet needed to but work making the mdb file an mde file work? The
file's split. Suggestions would be most appreciated.

Regards,

Stinky Pete ;-)

Aug 27 '07 #1
0 1312

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

Similar topics

9
by: news | last post by:
There's all kinds of ways to validate an email address to make sure it's well formed and whatnot, but what about checking to see if it's a valid e-mail account? Like how you can use checkdnsrr()...
5
by: jason | last post by:
I could sure use some conceptualization and query help with a Page Watch System I am building in Access 2000 and Asp. I need to cycle through databae and generate a compiliation query email that...
3
by: Glen Wolinsky | last post by:
We have written a service that runs in the background to deliver email to our users. The emails are generated from data in SQL that our application creates. This service sends out thousands of...
1
by: NW Technicals | last post by:
I am trying to send email using this fucntion can you guys help me please find the mistake I am using my Gmail Credentials and the only exception error I get is Failure sending email Any...
5
by: neeraj | last post by:
I have made a service which picks up records from a table which has following columns :From,to,subject,body,status The service, after picking up the records, loops through all the records and...
0
by: =?Utf-8?B?Rmxhc2hNZXJsb3Q=?= | last post by:
We use .NET but we do NOT have Exchange. Ok, we have this enterprise application. The app currently sends emails from 15 different places in the code with no feedback, no monitoring, just push...
4
by: Tony M | last post by:
VS 2005 - XP media - VB .net - winforms - .net 2.0 Just trying to send an email, here is the code and the error message that I get. I can't figure out how to fix it?
1
by: zivon | last post by:
now for the bigger problam :) I know you pepole hate using OE for sending emails, but its user friendly and its needed in this case... I found on this forum, a code that sends email using OE...
34
by: majahops via WebmasterKB.com | last post by:
When I click "save" after adding a new record (which contains, among other fields, the person's email address), I want an email to automatically be sent to that person (at the email that is in the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.