473,795 Members | 3,439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS access to import specific mails subjects from outlook

4 New Member
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 2492
IceBower
15 New Member
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
Isecretl
4 New Member
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
IceBower
15 New Member
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
Isecretl
4 New Member
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.sub ject) = "blackberry ")
Jul 30 '08 #5
IceBower
15 New Member
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.sub ject) = "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
4 New Member
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
1816
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 software 'forget' one or a few mails .... For instance : 24 mails in the folder but only 22 are saved.
1
8229
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 Access to import l;oop though my inbox and pick up all the usesr defined field data from any messages froma specific subject. I have have mixed and matched some code I found on the net however it doesn't seem to work properly. problems I face are:
3
1602
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 there a way to convert to Access without re-entering the information 1 record at a time? TIA
3
1272
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 e-mail in combination with Acces. I can make a query, with the people I would like to inform. What do I have to do now!! Can't just import in Outlook or export to Outlook.
17
7650
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 following table that lists a building manager's name, e-mail address and their building, is there a way that I can automate this to send these monthly e-mails from Outlook. Ideally this would be a click one button type of action:
1
2156
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. Is there a way to do this? We are using MS Outlook each user has an account set up that gives them a personal mailbox and access to another mailbox "helpdesk". I
4
1917
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 my query will only check the first characters in the field to confirm whether they match the original split I did with the other code I showed under VBA breakout (you'll notice I used the code in the part I show here for part two and three of this...
14
2785
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 that they have Access 97, as I use the access 97 runtime scripts from Sagekey software. The main problems I've seen with Access 97 are the built in e-mail support for sending reports. Unless a user uses the MS Outlook 2000/XP method, they have to...
0
986
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, Spoorthi
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.