Purchase Order Form in MS Outlook ?


I would like to design a custom form in MS Outlook, to be used by users within my company, for issuing Purchase Order requests.  I am fairly new to this kind of thing, but I have had some success designing a form (using tools such as drop down boxes, formula fields .....etc), but what I need to know is if this data can be saved from the Outlook custom form to an external data source, such as an MS Access database.  From an auditing point of view, we have to keep a record of all purchases that we issue.

Any help would be great ............ Thanks !
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.

Just as an FYI, any forms designed in Outlook can only be viewed in any normalacy in Outlook.  An associate of mine designed a status report in Outlook and while it was decent in OL, it was gibberish in OWA.

I have yet to export stuff out of Outlook to anything...

that just my 2 cents, but below are the tutorial urls.






I just saw the word auditing.  What's the criteria or important points that the auditor wants if the auditor want to review the transactions?

You may also need some way of validating that purchase order request, and maybe serializing them to make for an easily trackable system.

David LeeCommented:
Hi lucour,

> what I need to know is if this data can be saved from the Outlook custom
> form to an external data source, such as an MS Access database
Yes, it can.  Are you familiar with connecting to Access using ADO?  

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

lucourAuthor Commented:
Thanks BlueDevilFan ............ No, I am not familiar with connecting to Access using ADO.  Do you have any examples ?

Thanks !
David LeeCommented:
Here you go.

    Dim adoCon
    Set adoCon = CreateObject("ADODB.Connection")
    With adoCon
        'Change the name of and path to the database on the following line
        .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDatabase.mdb;Persist Security Info=False"
        .Execute "INSERT INTO MyTable (Field1,Field2) VALUES(Value1,Value2)"
    End With
    Set adoCon = Nothing

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
lucourAuthor Commented:
Thanks BlueDevilFan ........ I ran a test with your code and it worked.  However, I don't want to export hard coded values to the Access table.  I want to export the values that have been inserted into the fields on the custom Outlook form.  For example, field name ItemQty1 on the Outlook form would write to field Qty1 in the Access database ; ItemPrice1 would write to Price1 ......... and so on.

Do I substitue 'VALUES(Value1, Value2)' for something else ?

Thanks !
David LeeCommented:
> Do I substitue 'VALUES(Value1, Value2)' for something else ?
Yes.  That was just an example showing the syntax.  You'll want something like this:

    INSERT INTO MyTable (Qty1,Price1) VALUES('" & Item.ItemQty1 & "','" & Item.ItemPrice1 & "')"

David LeeCommented:
Any update, lucour?
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.