PC Review


Reply
Thread Tools Rate Thread

Programming Outlook to add a record to an Access DB

 
 
=?Utf-8?B?QyBIYXllcw==?=
Guest
Posts: n/a
 
      30th Jul 2007
I'm IN Outlook. I've seen tons of examples on how to program Access to
manipulate Outlook but a few archaic examples from Outlook, none of which I
can understand.

I'd like to use ado because I know it.

I'll try anything right now. The DAO.Recordset object won't work with

Dim rs as DAO.Recordset
or
Dim rs
Set rs = CreateObject("DAO.RecordSet")

Something with this CreateObject method that's needed in Outlook

Any suggestions would be greatly welcomed.
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      30th Jul 2007
When you say "The DAO.Recordset object won't work", do you mean that you're
getting a "user-type not defined" error?

If so, the problem is likely that you haven't set a reference to DAO. While
in the VB Editor with no code running, select Tools | References from the
menu bar, scroll through the list of available references until you find the
entry for Microsoft DAO 3.6 Object Library, select it, then exit the dialog.

Also, the DAO model is different than the ADO. DAO Recordsets don't have an
existence of their own: you can't use CreateObject to instantiate one.
Instead, you need to use the OpenRecordset method of either the Database or
QueryDef objects.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"C Hayes" <(E-Mail Removed)> wrote in message
news:5433DB45-2E8D-468B-8D59-(E-Mail Removed)...
> I'm IN Outlook. I've seen tons of examples on how to program Access to
> manipulate Outlook but a few archaic examples from Outlook, none of which
> I
> can understand.
>
> I'd like to use ado because I know it.
>
> I'll try anything right now. The DAO.Recordset object won't work with
>
> Dim rs as DAO.Recordset
> or
> Dim rs
> Set rs = CreateObject("DAO.RecordSet")
>
> Something with this CreateObject method that's needed in Outlook
>
> Any suggestions would be greatly welcomed.



 
Reply With Quote
 
 
 
 
=?Utf-8?B?QyBIYXllcw==?=
Guest
Posts: n/a
 
      30th Jul 2007
Thank you.

"Douglas J. Steele" wrote:

> When you say "The DAO.Recordset object won't work", do you mean that you're
> getting a "user-type not defined" error?
>
> If so, the problem is likely that you haven't set a reference to DAO. While
> in the VB Editor with no code running, select Tools | References from the
> menu bar, scroll through the list of available references until you find the
> entry for Microsoft DAO 3.6 Object Library, select it, then exit the dialog.
>
> Also, the DAO model is different than the ADO. DAO Recordsets don't have an
> existence of their own: you can't use CreateObject to instantiate one.
> Instead, you need to use the OpenRecordset method of either the Database or
> QueryDef objects.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "C Hayes" <(E-Mail Removed)> wrote in message
> news:5433DB45-2E8D-468B-8D59-(E-Mail Removed)...
> > I'm IN Outlook. I've seen tons of examples on how to program Access to
> > manipulate Outlook but a few archaic examples from Outlook, none of which
> > I
> > can understand.
> >
> > I'd like to use ado because I know it.
> >
> > I'll try anything right now. The DAO.Recordset object won't work with
> >
> > Dim rs as DAO.Recordset
> > or
> > Dim rs
> > Set rs = CreateObject("DAO.RecordSet")
> >
> > Something with this CreateObject method that's needed in Outlook
> >
> > Any suggestions would be greatly welcomed.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choice of programming tool for Outlook programming tanutatu@hotmail.com Microsoft Outlook VBA Programming 4 13th Jul 2006 10:48 AM
Which programming language for programming for fun? Chris Freeware 18 3rd Apr 2006 01:06 PM
Will OOP programming go off and be replaced by AOP programming marathikaka@yahoo.co.in Microsoft VB .NET 3 23rd Aug 2005 03:49 PM
Current Record Count, Previous Record #, Add New Record =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 15th Feb 2005 09:35 PM
rpilot programming language - based on the pilot programming language *ProteanThread* Freeware 0 1st Feb 2005 11:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 AM.