![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi --
Can someone show me a code snippet to export tasks(eg. Subject, Complete,etc.) to MS Access. You can do this manually, but I would like to do it automatically-since there is no macro recorder Thanks |
Ads |
#2
|
|||
|
|||
![]()
Am Thu, 27 Jul 2006 12:32:53 -0400 schrieb craigs:
This way you can open a connection to the db: Dim cn As ADODB.Connection Set cn = New ADODB.Connection With cn .Provider = "Microsoft.Jet.OLEDB.4.0" .ConnectionString = "D:\database.mdb" .CursorLocation = adUseClient .Mode = adModeShareDenyNone .Open End With Example for a ref to the currently selected item: Dim Task as Outlook.TasItem Set Task=Application.ActiveExplorer.Selection(1) You can use the Connections's Execute method to write one record into the db: Dim cmd$ cmd="insert into [table] (field1, field2) values (digit, 'string')" cn.Execute cmd -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hi -- Can someone show me a code snippet to export tasks(eg. Subject, Complete,etc.) to MS Access. You can do this manually, but I would like to do it automatically-since there is no macro recorder Thanks |
#3
|
|||
|
|||
![]()
See http://www.outlookcode.com/d/customimport.htm for links to samples and other resources.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "craigs" wrote in message ... Hi -- Can someone show me a code snippet to export tasks(eg. Subject, Complete,etc.) to MS Access. You can do this manually, but I would like to do it automatically-since there is no macro recorder Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Programmatically Export Outlook Mail to Microsoft Access | LDMueller | Outlook and VBA | 4 | June 13th 06 02:54 PM |
Export Outlook 2003 Email Message To Access 2003 Table | Gwhit | Outlook and VBA | 1 | May 30th 06 04:36 PM |
Backup your Outlook calendar, address book, notes, tasks...etc online, synchronize it across several locations, and get web access to all these data! | [email protected] | Outlook - Calandaring | 1 | April 14th 06 06:31 PM |
Importing Tasks from Access on startup | Grant Bush | Outlook and VBA | 7 | March 10th 06 05:35 PM |
Automating folder export from Outlook to Access | [email protected] | Outlook and VBA | 1 | March 6th 06 06:15 PM |