Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Search Access Table with Excel

Hi All,

I'm new to programming Excel but have been at it for a couple years
now with Access.

Can a macro be written to search an access table using data from an
excel list as criteria? If so can the fields returned in the query
(i.e. select * from table1 where column1 = an excel list value) be
assigned to individual cells in the worksheet?

Just wondering if its possible.

Thanks for any insight.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Search Access Table with Excel

Yes. Use ADO. You would just construct the appropriate SQL string to pass
to the query.

Another way would be to do a querytable. You can create a querytable with
the macro recorder turned on to get the code to create the querytable.

--
Regards,
Tom Ogilvy


"Looch" wrote:

Hi All,

I'm new to programming Excel but have been at it for a couple years
now with Access.

Can a macro be written to search an access table using data from an
excel list as criteria? If so can the fields returned in the query
(i.e. select * from table1 where column1 = an excel list value) be
assigned to individual cells in the worksheet?

Just wondering if its possible.

Thanks for any insight.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Search Access Table with Excel

There are some examples he
http://www.erlandsendata.no/english/...php?t=envbadac

Hth,
Merjet


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Search Access Table with Excel

Thanks to both, that'll get me going for sure. Thanks again.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Records from Access Database table(more than 5 lakh records in this table) to Excel Sheet divya Excel Programming 1 October 26th 06 12:12 PM
Importing data from Access to Excel, but I need to vary the table from Access Liz L. Excel Programming 3 June 6th 06 02:12 AM
How do i build a search table in excel Obi-Wan Kenobi Excel Worksheet Functions 2 March 20th 06 03:20 PM
Excel function to search and access database problem Brian K. Sheperd Excel Programming 0 April 20th 05 08:42 PM
Linking a table in Access to a table in Excel using MS Query Diana[_5_] Excel Programming 1 January 16th 04 09:43 PM


All times are GMT +1. The time now is 10:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"