+ Reply to Thread
Results 1 to 4 of 4

Importing data from Access to Excel 2003 using code

  1. #1
    Nagesh
    Guest

    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. #2
    Tom Ogilvy
    Guest

    Re: 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" <Nagesh@discussions.microsoft.com> wrote in message
    news:3E411F5A-7E6C-4370-992F-9DDE5E8B1533@microsoft.com...
    > 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. #3
    Nagesh
    Guest

    Re: 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" <Nagesh@discussions.microsoft.com> wrote in message
    > news:3E411F5A-7E6C-4370-992F-9DDE5E8B1533@microsoft.com...
    > > 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. #4
    Tom Ogilvy
    Guest

    Re: 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.*****-clicks.com/excel/Ex...htm#Parameters

    --
    Regards,
    Tom Ogilvy

    "Nagesh" <Nagesh@discussions.microsoft.com> wrote in message
    news:A71A77CF-6709-45BE-A7E5-CF31E2E93DC1@microsoft.com...
    > 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" <Nagesh@discussions.microsoft.com> wrote in message
    > > news:3E411F5A-7E6C-4370-992F-9DDE5E8B1533@microsoft.com...
    > > > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1