Results 1 to 2 of 2
  1. #1
    gdgonzal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    3

    LookupRecord Macro Enable EMail - Access 2010 Web Database

    Hello All:

    I have an issue that I cannot seem to resolve. What I want is that when a buyer sets the status of a productivity record to "Request Mgr Approval" an e-mail is sent to the manager maintain on their user tbl. So far what I have below only sends e-mails to ID 1 of the user table and it should instead change dependant on the the "Assigned Buyer" is in the Productiivty tbl. Any assistance would be appreciated, thank you.

    Productivity Tbl contains:
    ID: Which is AutoNumber for tbl
    Assigned Buyer: Lookup to Users tbl

    Users Tbl contains:
    ID:Which is AutoNumber for tbl
    Buyer Name: Text name of buyer
    Buyer EMail: E-Mail for buyer
    Mgr Name: Text name of buyer mgr
    Mgr EMail: E-Mail of buyer's mgr

    Status Tbl contains:
    ID:Which is AutoNumber for tbl
    Status: "Request Mgr Approval" which has ID of 2

    Productivity Amount Tbl contains:
    ID:Which is AutoNumber for tbl
    FK: Which is foreign key of Productivity Tbls autonumber ID
    Amount: Currenct Amt
    Status: Lookup from Status tbl

    Productivity Amount:After Update:

    If [Status]=2 Then
    Look Up A Record In Productivity
    Where Condition = [ID]=[ProductivityAmount].[ForeignKey]
    Alias

    Look Up A Record In Users
    Where Condition = [ID]=[Users].[ID


    Alias
    SendEMail
    To = [User].[ManagerEMail]
    Cc
    Bcc
    Subject: "Subject Here"
    Body: "Body Here"

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 04-18-2012, 11:16 AM
  2. Access 2010 first macro - errors
    By DLParker in forum Forms
    Replies: 9
    Last Post: 10-16-2011, 04:17 PM
  3. Access 2010 Macro Help
    By RayMilhon in forum Access
    Replies: 3
    Last Post: 09-30-2011, 12:03 PM
  4. Access 2010 Macro
    By RayMilhon in forum Access
    Replies: 3
    Last Post: 09-28-2011, 11:37 AM
  5. Macro for Email Wizard Using the Access Runtime?
    By MFriend in forum Programming
    Replies: 1
    Last Post: 07-12-2010, 04:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums