By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,608 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,608 IT Pros & Developers. It's quick & easy.

How do I connect Access database to Excel?

P: n/a

I start with my code:

Dim PUTKI As New ADODB.Connection
Dim huon As New ADODB.Recordset

Set PUTKI = CurrentProject.Connection

huon.Open "select * from dbo_2000_huon " & _
"where kiinttunn = " & Range("a1") & _
" and huon_tunnus = " & "'" & Range("a2") & "'" & _
" and huon_numero = " & Range("a3"), PUTKI, adOpenKeyset,

I know that "Set PUTKI..." is not correct, but I do not know what is

I have an Access database called MyDatabase. I have there a linked
table called huon. I try to get information from huon to excel.

I think the format is something like "connectionstring...", but that
is all I know!

Could you please help me?

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Okay, so your goal is to take data from your table and output it to an
existing Excel spreadsheet? Did you try I know there's code
there for stuff like that. Like transferring data to Excel using a
recordset object etc.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.