View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Kained[_2_] Kained[_2_] is offline
external usenet poster
 
Posts: 5
Default Query 2 excel files with ADO

thanks, but now am confused... sorry to sound like a complete idiot, how
would you 'record' a macro? The functionality (akin to excel) is not
available, not in Access 2002 am using anyway.


"Joel" wrote:

I haven't tried it, but it should work.

"Kained" wrote:

I usually record a macro in Access


Joel, so i could potentially make them linked tables and then record a macro?


"Joel" wrote:

using ADO method is basically like opening up the excel file as access
databases and performing the operation using access. If you can do it with
access then you can write a macro to perform the same operation.

In reality the file structure of all microsoft products are the same. A
file consists of either tables, pictures, documents, .... An excel worksheet
is eactly the same as access table. That is why you can use the ADO method
either on the access table or the excel worksheet.

I usually record a macro in Access and then move the recorded macro in tho
excel when I'm experimenting with new idea.

"Kained" wrote:

Is it possible to query two excel files with ADO?

By this I mean, using two separate excel files (as tables, each with same
UIDs) and being able to perform an INNER JOIN on them?

I understand alternatives are to create two connections and loop through the
second with various methods, but am really after a sleeker solution using a
single query.

Any pointers are most appreciated.