• Email Subject (2003)

    Author
    Topic
    #430045

    I am use sendObject to email my report as email attachment. How can I link email subject with one field of the form? For example, I have an filed of form calls “User,” I want the email subject to be” Monthly Report with Mark.” Mark is the user that select from the form.

    Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #1003041

      Look at post 493538 for an idea on how to get the user’s name

      • #1003059

        Thanks

        • #1003090

          But I don’t have defaul users, I let user to select from the form. Please help!!!!

          Regards

          • #1003098

            You could use something like the following, with the appropriate names substituted:

            DoCmd.SendObject acSendReport, “rptMyReport”, acFormatRPT, “You@Somewhere.com”, , , “Monthly report for ” & Me.txtUser, “…”

            where txtUser is the control in which the user is entered/selected.

    Viewing 0 reply threads
    Reply To: Email Subject (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: