+ Reply to Thread
Results 1 to 3 of 3

Update Excel query value from Sheet

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    7

    Update Excel query value from Sheet

    Hi everyone!

    I connected one Workbook to a database to Microsoft query. So far so good.

    My problem is that that query uses dates to sort the data and I wanted to have Microsoft Query fetch the value for the date in a Sheet on the workbook.

    Meaning that in the CRITERIA FIELD I would have something like:

    DATE
    Cells(AA1)

    Is this even possible?? I've attached a photo to help illustrate my problem.

    Thanks in advance
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: Update Excel query value from Sheet

    In MS Query criteria grid you specify parameters by enclosing them in square brackets with an optional text prompt:

    The example below will return order dates between the 2 dates entered.
    Criteria Field: OrderDate
    Value: Between [first date] And [second date]

    This example will return order dates on or after the date entered.
    Criteria Field: OrderDate
    Value: >=[enter date]

    Right-click the returned data on the Excel sheet and select Parameters. From there you can choose a cell for each parameter.

  3. #3
    Registered User
    Join Date
    08-05-2009
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Update Excel query value from Sheet

    Perfect! Thanks so much

+ 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