+ Reply to Thread
Results 1 to 6 of 6

Adodb Query with Offset?

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Adodb Query with Offset?

    Is it possible to use a ADODB to do a SQL Query to a workbook with an Offset formula? Such as OFFSET(Named Range,0,1)

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Adodb

    What would the purpose of the Offset be?

    PS It's probably a good idea to change the thread title, Adodb isn't very descriptive.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adodb Query with Offset?

    The purpose would be is to ask SQL/ADODB to find the cell a certain row or column from a certain named range to find its value.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Adodb Query with Offset?

    I don't quite follow, could you give an example?

  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adodb Query with Offset?

    So I would send a SQL Query that would state please find the value in the cell 2 Rows and 3 Columns away from Range("MyNamedRange"). Using named ranges helps it stay dynamic

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Adodb Query with Offset?

    Nicholas

    That doesn't really sound like an SQL type of thing - what are you querying, what's the criteria?

    If you wanted to get the value 2 rows down and 3 columns right then just use VBA's Offset.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Index Match Offset Query
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-04-2013, 09:26 PM
  2. Access Query via Excel (ADODB) - no error, but no output!
    By cml111 in forum Access Tables & Databases
    Replies: 3
    Last Post: 04-23-2013, 05:33 AM
  3. [SOLVED] How to offset a vlookup query by x columns to the left
    By datthed in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2012, 01:25 PM
  4. Complex ADODB-query
    By ino_mart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2012, 05:41 PM
  5. VBA Web Query Macro, Offset Multiple Rows Looping
    By huey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-30-2009, 06:42 PM

Tags for this Thread

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