Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Importing data from Access to Excel 2003 using code

Hi,

I have written code to import data from Access to Excel using VB code since
I wanted values to be filtered on a value. I picked up this code from MS site
which used ADODB for connection. I found that this code was not working
properly despite choosing proper references.
Is there a simple way I can get data from Access to excel 2003 filtred on a
value which is stored in adjacent cell. (If I use get external data in Excel,
it dumps the entire table).
Appeciate your response.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Importing data from Access to Excel 2003 using code

Get External Data supports adding a criteria. In MS query, look in the menu
when you set up the query.

--
Regards,
Tom Ogilvy


"Nagesh" wrote in message
...
Hi,

I have written code to import data from Access to Excel using VB code

since
I wanted values to be filtered on a value. I picked up this code from MS

site
which used ADODB for connection. I found that this code was not working
properly despite choosing proper references.
Is there a simple way I can get data from Access to excel 2003 filtred on

a
value which is stored in adjacent cell. (If I use get external data in

Excel,
it dumps the entire table).
Appeciate your response.

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Importing data from Access to Excel 2003 using code

Tom,

Adding a criteria there would require value to be provided in a popup
window. I am looking for value to be picked up from a cell which is my active
cell.
Thanks,


"Tom Ogilvy" wrote:

Get External Data supports adding a criteria. In MS query, look in the menu
when you set up the query.

--
Regards,
Tom Ogilvy


"Nagesh" wrote in message
...
Hi,

I have written code to import data from Access to Excel using VB code

since
I wanted values to be filtered on a value. I picked up this code from MS

site
which used ADODB for connection. I found that this code was not working
properly despite choosing proper references.
Is there a simple way I can get data from Access to excel 2003 filtred on

a
value which is stored in adjacent cell. (If I use get external data in

Excel,
it dumps the entire table).
Appeciate your response.

Thanks,




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Importing data from Access to Excel 2003 using code

that's not true either. Looks like you are building your own obstacles to
reaching a solution:

http://nickhodge.co.uk/gui/datamenu/...taexamples.htm

http://www.dicks-clicks.com/excel/Ex...htm#Parameters

--
Regards,
Tom Ogilvy

"Nagesh" wrote in message
...
Tom,

Adding a criteria there would require value to be provided in a popup
window. I am looking for value to be picked up from a cell which is my

active
cell.
Thanks,


"Tom Ogilvy" wrote:

Get External Data supports adding a criteria. In MS query, look in the

menu
when you set up the query.

--
Regards,
Tom Ogilvy


"Nagesh" wrote in message
...
Hi,

I have written code to import data from Access to Excel using VB code

since
I wanted values to be filtered on a value. I picked up this code from

MS
site
which used ADODB for connection. I found that this code was not

working
properly despite choosing proper references.
Is there a simple way I can get data from Access to excel 2003 filtred

on
a
value which is stored in adjacent cell. (If I use get external data in

Excel,
it dumps the entire table).
Appeciate your response.

Thanks,






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
importing/linking data from an Access 2003 Query to an Excel 2003 PerryK Excel Discussion (Misc queries) 2 August 24th 09 07:06 PM
Importing data from Excel to Access Linda Excel Discussion (Misc queries) 0 November 20th 07 04:35 PM
Importing Data from Access into Excel vnvkatz Excel Discussion (Misc queries) 3 June 9th 05 05:02 PM
problem with importing data from access to excel NEVARLEN Excel Programming 0 May 21st 04 11:43 PM
Importing Access data to Excel Chaprastee Excel Programming 1 May 10th 04 10:51 PM


All times are GMT +1. The time now is 01:51 AM.

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

About Us

"It's about Microsoft Excel"