Go Premium for a chance to win a PS4. Enter to Win


Access Import .csv file Time Value error

Posted on 2013-05-22
Medium Priority
Last Modified: 2013-05-23
I am using Access2003 and trying to import the following two .csv files.  I am consistently getting the error about not being able to convert the fields in:

Punch Time

Actual Start
Actual End

I have even tried linking to the .csv file and even get errors doing that.  These are being formatted as Date/Time upon linking or import.

I DO NOT want to store these as text values in the database.  How can I get these to convert?
Question by:ndornack
LVL 46

Assisted Solution

aikimark earned 1000 total points
ID: 39189815
The problem with the data in the fields is that it is only the time component of a date/time value.  The Access import code can not understand such (dateless) values as date/time values.

You can write code to do the import without the use of a temporary table.  However, I do not think you will be able to do a direct import of your CSV data using the Access import functions.
LVL 52

Accepted Solution

Gustav Brock earned 1000 total points
ID: 39189924
Don't import the files but link them with the time fields as text.

Then create a query to read the data using TimeValue to convert the time fields:

  TimeValue([PunchTime]) AS RealPunchTime


Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question