+ Reply to Thread
Results 1 to 3 of 3

how to export data into query

  1. #1
    tires85
    Guest

    how to export data into query

    how do you export dates into a query

  2. #2
    David McRitchie
    Guest

    Re: how to export data into query

    Excel dates are stored as numbers from a reference point,
    either you need to adjust the number by subtracting (or adding) a constant;
    otherwise, if it is looking for a text date with slashes or hyphens then
    you would have to format another cell as text
    =TEXT(cellwithdate, "yyyy-mm-dd")
    in VBA code it would be something like
    strDate = FORMAT(datevariable,"yyyy-mm-dd")
    strDate = Format(Date, "yyyy-mm-dd")
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "tires85" <[email protected]> wrote ...
    > how do you export dates into a query




  3. #3
    tires85
    Guest

    Re: how to export data into query

    Thanks very much,
    I will try this.

    "David McRitchie" wrote:

    > Excel dates are stored as numbers from a reference point,
    > either you need to adjust the number by subtracting (or adding) a constant;
    > otherwise, if it is looking for a text date with slashes or hyphens then
    > you would have to format another cell as text
    > =TEXT(cellwithdate, "yyyy-mm-dd")
    > in VBA code it would be something like
    > strDate = FORMAT(datevariable,"yyyy-mm-dd")
    > strDate = Format(Date, "yyyy-mm-dd")
    > ---
    > HTH,
    > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    >
    > "tires85" <[email protected]> wrote ...
    > > how do you export dates into a query

    >
    >
    >


+ 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