Link to home
Start Free TrialLog in
Avatar of matt_m
matt_m

asked on

Userform in Outlook connected to Access

Hi Experts,

I work in a small company, where my team of 4 receive perhaps 100 emails a day with various attachments relating to different products.  Currently its a mess how we organize these emails.

As a possible solution I would like to build an Outlook userform which would be used to update an Access database which would record several features of each email received.   In my mind the userform would have the following features:

1) the email would be selected within outlook and then the userform activated. The subject heading of the selected email, time/date etc would be passed to Access automatically.  

2) there is an input box in the userform where the products name the email relates to is entered.   Now there are 500 or so different products with rather long names - some are very similar with perhaps a number on the end only being the difference.  Ideally there would be some sort of ability that where as letters are entered available a product name which contain those letters can be selected from multiple options (from a list of products names contained in Access).  Not sure what would the best way to do this is - but for the tool to be adopted by the team its important this step is easy, quick and pain free!

3) several checkboxes classifying the email into what type (eg order, customer query etc) - there are only 5 or so types here

4) some other input boxes where various comments can be entered - these don't have to be verified.

5) enter button where the info is passed to access

My questions are whether each of these parts are possible (with an emphasis on 1 and 2) and some directions on how to go about it.  As a bit of background I have 5 years or so background in VBA (99% in excel though)/Access and am fairly competent although limited use of useforms.  

Thanks for your time!
Matt
Avatar of PatHartman
PatHartman
Flag of United States of America image

Yes you can do it but this might be easier if you do it from the Access side.  Access can link to Outlook tables.  But I don't think Outlook forms can link to Jet/ACE tables so that leaves you writing a lot of code.
User generated imageTake a look at what you can see from Access to see if you can possibly automate any of this.  The benefit of doing this from Access is that you can use bound forms.  If you do this as a user form in Outlook, you'll need to write DAO/ADO code to populate the form when you want to view data and code to save the data when you want to update/add it.
Avatar of matt_m
matt_m

ASKER

Thanks Pat - yes I expected that there would be lots of ADO code involved - I've done a lot of similar stuff with Excel/Access interaction that's been really successful.  The solution really has to be on the Outlook side as getting the rest of the team to use Access will be a challenge.
Avatar of matt_m

ASKER

As an update - I've being googling around and have managed to assemble code to connect to Access and populate a table with properties of the currently selected email. What I really need a hand with now is ideas on the best solution to point 2 above.
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matt_m

ASKER

Thanks guys - you've really given me some great ideas