Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    rmoreno is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2013
    Posts
    51

    Wow. Works perfectly. By the way, there is a typo in the BETWEEEN (sp BETWEEN) statement. Took me a bit to figure that one out.
    Thanks many times over for your help with this, couldn't have done it without you.

    Issue is solved.

  2. #17
    rmoreno is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2013
    Posts
    51
    Oops. Looks like I spoke too soon.
    When I run the Excel code to copy the data from the query to the Excel spreadsheet (.CopyFromRecordset), the column where the converted date and time should be is blank.

    Any ideas why this is?

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I did not try the DLookup in my tests. Only thing I can deduce is that Excel can't handle the Access DLookup function. It builds recordset but data constructed using those functions is not processed.

    Your only options might be:

    1. save the data to a local table with an INSERT SELECT sql and use that table as source for the query

    2. push the data from Access to Excel instead of Excel pulling the data
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 10-31-2013, 06:51 AM
  2. Replies: 9
    Last Post: 06-21-2013, 08:22 PM
  3. How to copy and paste between worksheets in Excel?
    By Ronald Mcdonald in forum Programming
    Replies: 6
    Last Post: 05-26-2012, 10:40 PM
  4. Copy data from excel to access
    By aluksnietis2 in forum Programming
    Replies: 6
    Last Post: 12-01-2011, 07:22 AM
  5. Replies: 3
    Last Post: 11-02-2009, 04:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums