Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Email a record

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Enigo - 07 Nov 2007 16:00 GMT
Hi,

I am trying to automate a process within my database. The process being that
when a Super User rejects a transaction it will generate an email to the user
who last modified the record with details of why the transaction has been
rejected.

Here is the code I have been trying to use.

Private Sub Form_AfterUpdate()

   If [AR Manager Approval] = "Rejected" Then

   DoCmd.SendObject acSendNoObject, _
               To:=[LastModifiedBy], _
               Subject:="Your transaction request has been rejected", _
               MessageText:="Your request to have" & [CustomerName] &
[Invoice Number] & _
               " sent to debt refferal has been rejected for the following
reasons - " & _
               [Rejected Reason]
               
   End If

End Sub

Can someone please help with this query?
Erez Mor - 07 Nov 2007 17:24 GMT
hi
it seems like a good idea and the code doesnt seem bad
so what are you asking?
Erez.

> Hi,
>
[quoted text clipped - 23 lines]
>
> Can someone please help with this query?
Enigo - 07 Nov 2007 17:54 GMT
Hi,

I am getting the following run time error when the code tries to execute.
Error 2465 - Bad Debt Tracking can't find the field '|' reffered to in your
expression.

I have checked the code and all looks fine. But I am not familiar with vba
in access.

Can you have a look and see if you can spot the error or maybe suggest an
alternative method of doing this.

Thanks again.

> hi
> it seems like a good idea and the code doesnt seem bad
[quoted text clipped - 28 lines]
> >
> > Can someone please help with this query?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.