ms outlook change the from email sent from using vba code

have my out look that i use to send out a 20 -30 emails for work, and when it arrives it says from , but need to say that the email comes from
i am composing the email out of a DB and building it in the back end as below but cannot see how to change the email from in the header even though  i have the other email set up in the email account, were is the default setting to set this up
any help would be appreciated
using outlook 2003

               Dim olapp As Outlook.Application
               Dim objmail As Outlook.MailItem
               Dim pos As Integer
               Set olapp = Outlook.Application
               Set objmail = olapp.CreateItem(olMailItem)
               objmail.BodyFormat = olFormatRichText
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
According to Sue Mosher, who has forgotten more about Outlook than most of us will ever hope to know, there is no direct way to change the account for an outgoing message. See this posting in the MSFT newsgroups for more information.

I've taken to use vbMAPI from It's a complete solution and requires no external DLL files. All the needed functionality is contained directly in the Access database. For the cost, it has saved me countless hours (and headaches).
Jeffrey CoachmanMIS LiasonCommented:
Being no Outlook/Excehnge Expert either,
... I remember that there may be features that let you "SendOnBehalfOf", ...or "SendAs"
(These may depend of Outlook "Delegate" assignments, or certain Exchange privileges,...  It may also depend on the version of Outlook or Exchange...?))

You can probably dig up more info from here...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sydneyguyAuthor Commented:
yep thanks for that
objmail.SentOnBehalfOfName = works perfectly so thanks for the assistance
sydneyguyAuthor Commented:
thanks for the help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.