Results 1 to 8 of 8

loosing the hhmmss when exporting datetime to Microsoft Access through macro (vba and SQL)

Threaded View

  1. #1
    Registered User
    Join Date
    02-04-2018
    Location
    Canberra, Australia
    MS-Off Ver
    2013
    Posts
    77

    loosing the hhmmss when exporting datetime to Microsoft Access through macro (vba and SQL)

    Hi All,

    I'm using excel to export data from a CSV file to Microsoft Access.

    One of the fileds is datetime (3/01/2019 12:02:00 AM). I can import the data into Access manually and the hhmmss remains however when I run it through the macro it is dropping off the hhmmss.

    I have attached a sample CSV file, the import spreadsheet and a test Access database (sorry can't attach the Access file).

    The data for 02/01/2019 and 03/01/2019 have been manually imported into Access and the data for 04/01/2019 has been imported through Excel.

    the project called DataLoad does the loading work and ADOFuncs does the db connection work.


    Any help is appreciated as it is driving me crazy.

    Cheers

    Dean


    This is what is imported into Access (03/01/2019 manually imported and 04/01/2019 imported from Spreadsheet)
    AccessPic.JPG
    Attached Files Attached Files
    Last edited by DeanMcK; 01-06-2019 at 11:55 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 08-12-2015, 05:45 PM
  2. Add Microsoft Access Object Library reference without installed Microsoft Access
    By nichchap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2014, 08:36 AM
  3. Excel Macro for exporting rows to Access 2007
    By Joshua_Babcock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2012, 01:55 PM
  4. Macro that opens access and auto fills input boxes before exporting.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2010, 09:26 AM
  5. exporting excel to access macro
    By student56 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2008, 01:38 PM
  6. datetime format issues when linking access to excel
    By Season in forum Excel General
    Replies: 0
    Last Post: 12-06-2005, 01:00 PM
  7. [SOLVED] Need Excel macro for exporting data to Access
    By halfshoe in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2005, 06:06 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