PC Review


Reply
Thread Tools Rate Thread

Connecting to Access Database from Excel

 
 
=?Utf-8?B?RmVpZmVp?=
Guest
Posts: n/a
 
      19th Feb 2007
Hi - I'm tring to open an Access 2003 database from Excel 2003 and append a
range of Excel cell values into an existing table.

When I try to declare the connection variable, I got a compiler error for
"user-defined type not define" for

Dim Conn As New ADODB.Connection

Is there anything else I need to do before declaring the connection variable?

Thanks!

Feifei

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      19th Feb 2007
In Excel,
have you created a reference in the VBE in tools => Referneces to the ADODB
reference library?

--
Regards,
Tom Ogilvy


"Feifei" wrote:

> Hi - I'm tring to open an Access 2003 database from Excel 2003 and append a
> range of Excel cell values into an existing table.
>
> When I try to declare the connection variable, I got a compiler error for
> "user-defined type not define" for
>
> Dim Conn As New ADODB.Connection
>
> Is there anything else I need to do before declaring the connection variable?
>
> Thanks!
>
> Feifei
>

 
Reply With Quote
 
=?Utf-8?B?RmVpZmVp?=
Guest
Posts: n/a
 
      19th Feb 2007
I actually just found that out right after I post the question. Knew it
would have been a really quick fix. Thanks!

"Tom Ogilvy" wrote:

> In Excel,
> have you created a reference in the VBE in tools => Referneces to the ADODB
> reference library?
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Feifei" wrote:
>
> > Hi - I'm tring to open an Access 2003 database from Excel 2003 and append a
> > range of Excel cell values into an existing table.
> >
> > When I try to declare the connection variable, I got a compiler error for
> > "user-defined type not define" for
> >
> > Dim Conn As New ADODB.Connection
> >
> > Is there anything else I need to do before declaring the connection variable?
> >
> > Thanks!
> >
> > Feifei
> >

 
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
Connecting My Access Database to Excel Tangier Microsoft Excel Discussion 1 15th Sep 2008 07:38 PM
Connecting to an Access database NateBuckley Microsoft Excel Programming 3 6th May 2008 01:29 PM
Connecting to an Access database (MDB) =?Utf-8?B?RGFjdW5h?= Microsoft ADO .NET 6 29th Oct 2004 07:47 PM
Connecting access database Krish Microsoft VC .NET 1 19th Oct 2004 03:12 PM
CONNECTING AN ACCESS DATABASE (HELP!!!) DALHART DOBBS Microsoft Access 3 23rd Mar 2004 04:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:09 PM.