473,395 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MS access to import specific mails subjects from outlook

Dear Friends,


As i am totally without knowledge on VB, would like to check you guy as I have a little situation on my hands now, the situation is described as follows,

I am using MS exchange 03 server as my mail server and I have a acess 2003 as my database for my web application
Now from time to time I will receive certain emails with specific headers, how can I pick up these emails by detecting their subject header and thereafter import the body wholesale into a specific table in my access? I have tried the import wizard but it simply loads all my mails into a new table in my access. Any assistance is greatly appreciated thanks guys

Cheers
Jul 24 '08 #1
6 2474
Have you tried using the link table wizard instead? (select outlook as the file type.) Link your outlook inbox to the application that way then you can set up queries and coding to get the data you require.
Jul 24 '08 #2
Have you tried using the link table wizard instead? (select outlook as the file type.) Link your outlook inbox to the application that way then you can set up queries and coding to get the data you require.

hi

currently to simplify it i have the below 2 existing tables

Table 1 : knowledge_tbl
Table 2: inbox

the inbox is a link to my exchange. now the knowledge_tbl is the table that displays all my data that is presented to my department. as i am relatively having zero knowledge to this. i am seeing 2 tables of wich i need to extract table 2 data automatically into table 1. i can perform a sql query from within access itself to query table 2 and insert data into table 1? the portal language is done in asp. Thank you for your kind assistance
Jul 25 '08 #3
hi

currently to simplify it i have the below 2 existing tables

Table 1 : knowledge_tbl
Table 2: inbox

the inbox is a link to my exchange. now the knowledge_tbl is the table that displays all my data that is presented to my department. as i am relatively having zero knowledge to this. i am seeing 2 tables of wich i need to extract table 2 data automatically into table 1. i can perform a sql query from within access itself to query table 2 and insert data into table 1? the portal language is done in asp. Thank you for your kind assistance
I think i get what your after...

Try an SQL like this:

Expand|Select|Wrap|Line Numbers
  1. INSERT INTO knowledge_tbl ( Field Name )
  2. SELECT inbox.Contents
  3. FROM inbox
  4. WHERE ((Important.subject)="what your filtering by")
Jul 25 '08 #4
I think i get what your after...

Try an SQL like this:

Expand|Select|Wrap|Line Numbers
  1. INSERT INTO knowledge_tbl ( Field Name )
  2. SELECT inbox.Contents
  3. FROM inbox
  4. WHERE ((Important.subject)="what your filtering by")

Hi IceBower, first up i wanna thank you for the assistance.

I have tried your query however, it simply inserts all my mails from my inbox no matter what changes i make to the where clause on top of that my main concern is that it will actually write into my table over and over again. meaning to say a email i recieved 2 weeks ago if i never delete, if i run the query again it will actually write it in again. any advice?

my query:

INSERT INTO kb_items ( Body )
SELECT inbox.Body
FROM inbox
WHERE ((Important.subject) = "blackberry")
Jul 30 '08 #5
Hi IceBower, first up i wanna thank you for the assistance.

I have tried your query however, it simply inserts all my mails from my inbox no matter what changes i make to the where clause on top of that my main concern is that it will actually write into my table over and over again. meaning to say a email i recieved 2 weeks ago if i never delete, if i run the query again it will actually write it in again. any advice?

my query:

INSERT INTO kb_items ( Body )
SELECT inbox.Body
FROM inbox
WHERE ((Important.subject) = "blackberry")
Isecretl, sorry about the late reply. If you replace 'important' with 'inbox' then this code shoudl work.

As for stopping it replicating the messages, the best way to do this would be to create a record set in VB and hard code the query aswell, that way you could check if the table already contains another similar email.

If you need help writing this code then just let me know
Aug 12 '08 #6
Isecretl, sorry about the late reply. If you replace 'important' with 'inbox' then this code shoudl work.

As for stopping it replicating the messages, the best way to do this would be to create a record set in VB and hard code the query aswell, that way you could check if the table already contains another similar email.

If you need help writing this code then just let me know

dont worry about it i appreciate your kind assistance. due to the nature of this scope as it needs to run preferrably hourly 24 / 7 (Meaning run the query)

i actually tried to set a rule in outlook to forward the incoming mails into a seperate folder. Once there, there is a linked table from ACCESS to that particular folder. I then schduled a ms task to run a asp to query and extract accordingly.

Here is a little dilemma, when i query from MS access itself the query works fine, but when i put the query into asp i get this

"There are no MAPI clients installed on this machine. Install a MAPI client (like Outlook) on this machine"
*outlook is installed on my notebook as well as the server hosting the IIS*


The moment i change the query to query another normal table in access the asp works fine...

i am really unsure if i am going in the right course but when i tried to search on the net for this error for 3 days now, no progress i am really depressed lol
Aug 13 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: el | last post by:
Hello, I wrote a tool which read an outlook folder and save the mails to the hard disk (in .msg files) Here below one of the main sub of my tool. I don't know why but sometimes, this...
1
by: KS | last post by:
Hi, I have creatd a custom Outlook form with a few custom form fields. When completed the form is sent to me and goes into my Inbox. This works fine. Now Iam trying to write some code in...
3
by: Tlaker | last post by:
MS Works 6.0 to Access 2000. Tried saving to *.csv and dbf as well as converting to Excel then loading but to no avail. My Works database has about 4000 records, each with about 30 fields. Is...
3
by: H.A. Hamstra | last post by:
Dear people, I am a newbie with Acces. Just now I have created a database with all my customers. I would like to send them e-mails about offerings and sales etc. I have no idea how to send...
17
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
1
by: gemma.gill | last post by:
Hi There, I have a button on a form within access that sends a verification e- mail. My problem is that these e-mails are sending from individual user accounts rather than a genieric mailbox. ...
4
by: The Facilitator | last post by:
Well, Outlook seems to be making my life more and more challenging. Categories are added in one field and are delimmited via comma. Have three questions on this one... The first is right now...
14
by: ARC | last post by:
Hello All, I have a major application for quoting and invoicing that is written in Access 97 (both front and back ends). I have a user base of over 300 customers, and currently I don't require...
0
by: spoorthisri | last post by:
Hi All, Please how to access outlook express in C#.NET. I need to read the attachment from outlook express in C#.NET. and delete the mails move the mails from outlook express. Regards,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.