+ Reply to Thread
Results 1 to 2 of 2

How do I query for a date in Excel VBA from an Access file

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    How do I query for a date in Excel VBA from an Access file

    I managed to query eveything from an access file into an excel sheet in the following way:

    Please Login or Register  to view this content.
    However I'd like to get only those records that have a date in field BLA4 equal to 31/12/9999

    I tried the following but that did not work

    Please Login or Register  to view this content.
    I also tried this but again, nothing found

    Please Login or Register  to view this content.
    Below an example of the data:

    A.jpg

    The real file is a bit too complex to provide an example file.

  2. #2
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: How do I query for a date in Excel VBA from an Access file

    Already found the solution:
    Replacing the apostrophe delimiter with #

+ 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. Replies: 1
    Last Post: 08-13-2013, 03:25 AM
  2. Problem linking Excel File to Access Query
    By alcharbonneau in forum Excel General
    Replies: 0
    Last Post: 07-05-2012, 01:02 PM
  3. Problems using MS Query to access an Excel file
    By alfredo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2006, 08:35 PM
  4. excel - access query - date range
    By mxp in forum Excel General
    Replies: 1
    Last Post: 01-31-2006, 11:50 AM
  5. [SOLVED] VB Code or Excel macro to run Query/Import on Access file
    By Harry in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-22-2005, 04:06 PM
  6. [SOLVED] Date format - ADO query Access to Excel
    By gocush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2005, 06:07 AM
  7. Link Access query to refresh an EXCEL file
    By Dancer4u in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-13-2005, 02:06 PM

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