Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

SendObject Macro

Discussion in 'Information Technology' started by mgiardina05, Jul 28, 2006.

  1. mgiardina05

    mgiardina05
    Expand Collapse
    Guest

    I'm trying to write a SendObject Macro that auto pouplates the To: Field from
    a control.

    This is what shows up in the Email To: Line.
    [Forms]![Main]![EmployeeEmail]
     
  2. Loading...

    Similar Threads Forum Date
    Microcosm and Macrocosm Gurmat Vichaar Mar 20, 2009
    Adobe Unruffled by Macromedia Restatement (AP) Interfaith Dialogues May 4, 2005
    Macromedia Flash animation and designing. Interfaith Dialogues Oct 21, 2004

  3. Roger Carlson

    Roger Carlson
    Expand Collapse
    Guest

    Sorry, but macros cannot accept variables. In order to do this, you must
    convert your Macro to Code. To do this, right-click on the macro name then
    choose Save As. In the As box, choose Module. This will convert it to VB
    code something like this:

    DoCmd.SendObject acTable, "Table1", "RichTextFormat(*.rtf)", "xxx",
    "xxxx", "xxxxx", "xxxxxx", "xxxxxx", False, ""

    The x's represent the To, CC, BCC, Subject, and Message. This is where you
    would put your variable:

    DoCmd.SendObject acTable, "Table1", "RichTextFormat(*.rtf)", "
    [Forms]![Main]![EmployeeEmail]", "xxxx", "xxxxx", "xxxxxx", "xxxxxx", False,
    ""


    --
    --Roger Carlson
    MS Access MVP
    Access Database Samples: www.rogersaccesslibrary.com
    Want answers to your Access questions in your Email?
    Free subscription:
    http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L



    "mgiardina05" <mgiardina05@discussions.microsoft.com> wrote in message
    news:66C48D11-0C17-498B-A75A-3F28A4C0F0D9@microsoft.com...
    > I'm trying to write a SendObject Macro that auto pouplates the To: Field

    from
    > a control.
    >
    > This is what shows up in the Email To: Line.
    > [Forms]![Main]![EmployeeEmail]
     
  4. Steve Schapel

    Steve Schapel
    Expand Collapse
    Guest

    Mgiardina05

    You need to precede it with a = sign.
    =[Forms]![Main]![EmployeeEmail]

    --
    Steve Schapel, Microsoft Access MVP

    mgiardina05 wrote:
    > I'm trying to write a SendObject Macro that auto pouplates the To: Field from
    > a control.
    >
    > This is what shows up in the Email To: Line.
    > [Forms]![Main]![EmployeeEmail]
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page