473,779 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2000 Import Specifications defy logic

In Access 2000 and 2002, I have created an import specification to import the
fixed-width recordset below into an existing table. I am having strange
problems with the import of the date and time fields.

177 102003 16:43:12 102003 18:43:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
165 102003 17:43:12 102003 18:44:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
177 102003 16:41:18 102003 18:45:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
118 102003 16:41:17 102003 18:46:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
104 102000 16:29:50 102000 18:47:12 00000000 N 0000 0000 0000 0000 61930 4HGA800
130 102000 16:29:56 102000 18:43:12 00000000 N 0000 0000 0000 0000 61930 4HGA800
104 102000 16:28:56 102000 16:38:56 00000000 N 0000 0000 0000 0000 61930 4HGA800

The table design is as follows(there are no key restraints):
FLT Integer
STDATE DATE/TIME SHORTDATE
STTIME DATE/TIME LONGTIME
NDDATE DATE/TIME SHORTDATE
NDTIME DATE/TIME LONGTIME
BattID Text(9)
C Yes/No
NFO1 Text(4)
NFO2 Text(4)
NFO3 Text(4)
NFO4 Text(4)
CHGID Long Integer
VehicleID Text(9)

The import specification's Dates, Times, and Numbers selections are:
Date Delimeter = no delimeter
Time Delimeter = :
Four Digit Years = unchecked
Leading Zeros in Dates = checked
With the above values selected in the Import Spec., the STTIME and NDTIME fields
fail the import and the STDATE and NDDATE fields import correctly. If I change
the import spec. values for dates, times, and numbers to:
Date Delimeter = /
Time Delimeter = :
Then the STDATE and NDDATE fields fail the import and the STTIME and NDTIME
fields import correctly.

This makes no sense to me why the date delimeter has to be set with "/" for the
Time Delimeter to work. I have tried recreating the import spec. and everything
else I can think of and nothing seems to work. I removed the date formats on
the table as a test but it did not help. I also imported to a new table using
the import spec but the date or time fields would fail the import.

Am I missing something or is this software not going to work?
Thank you.
Nov 12 '05 #1
1 8181
Hi Mark,

Your message, posted 10/23/2003, is one that I marked with a flag for possible follow-up. I just
discovered the following KB article which may apply in your case:

ACC2002: Conversion Errors When You Import Dates That Have Different Formats
http://support.microsoft.com/?id=296572

The Access 2000 version is KB 208591. The STDATE field is not delimited, but the STTIME is
delimited with the colon. Likewise, the NDDATE field is not delimited, but the NDTIME field is
delimited with a colon. I believe this satisfies the criteria presented in the KB article:

SYMPTOMS
When you import a fixed-width file that has two Date fields that have different formats,
individually you can import the fields, but if you try to import the fields together, you may
receive the following error message:

Finished importing file <path> to table <name>. Not all your date was successfully imported.
Error description with associated row numbers of bad records can be found in the Microsoft Access
table '<name>_ImportE rrors'.

CAUSE
You may receive this error message when one of the Date fields has no delimiters and the other
Date field is formatted as a standard Date/Time field. Access does not allow you to import a Date
field that does not have delimiters together with a Date field that does have delimiters. You
must import the non-delimited Date field as Text, and then convert the data to a standard Date
format.
Tom
_______________ _______________ _______________ _

"mark" <ms@nospam.comc ast.net> wrote in message news:CP******** ************@co mcast.com...

In Access 2000 and 2002, I have created an import specification to import the
fixed-width recordset below into an existing table. I am having strange
problems with the import of the date and time fields.

177 102003 16:43:12 102003 18:43:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
165 102003 17:43:12 102003 18:44:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
177 102003 16:41:18 102003 18:45:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
118 102003 16:41:17 102003 18:46:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800
104 102000 16:29:50 102000 18:47:12 00000000 N 0000 0000 0000 0000 61930 4HGA800
130 102000 16:29:56 102000 18:43:12 00000000 N 0000 0000 0000 0000 61930 4HGA800
104 102000 16:28:56 102000 16:38:56 00000000 N 0000 0000 0000 0000 61930 4HGA800

The table design is as follows(there are no key restraints):
FLT Integer
STDATE DATE/TIME SHORTDATE
STTIME DATE/TIME LONGTIME
NDDATE DATE/TIME SHORTDATE
NDTIME DATE/TIME LONGTIME
BattID Text(9)
C Yes/No
NFO1 Text(4)
NFO2 Text(4)
NFO3 Text(4)
NFO4 Text(4)
CHGID Long Integer
VehicleID Text(9)

The import specification's Dates, Times, and Numbers selections are:
Date Delimeter = no delimeter
Time Delimeter = :
Four Digit Years = unchecked
Leading Zeros in Dates = checked
With the above values selected in the Import Spec., the STTIME and NDTIME fields
fail the import and the STDATE and NDDATE fields import correctly. If I change
the import spec. values for dates, times, and numbers to:
Date Delimeter = /
Time Delimeter = :
Then the STDATE and NDDATE fields fail the import and the STTIME and NDTIME
fields import correctly.

This makes no sense to me why the date delimeter has to be set with "/" for the
Time Delimeter to work. I have tried recreating the import spec. and everything
else I can think of and nothing seems to work. I removed the date formats on
the table as a test but it did not help. I also imported to a new table using
the import spec but the date or time fields would fail the import.

Am I missing something or is this software not going to work?
Thank you.
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6273
by: Doug Baroter | last post by:
Hi, One of my clients has the following situation. They use Access DB for data update etc. some business functions while they also want to view the Access data quickly and more efficiently in SQL Server 2000. Huge Access db with over 100 user tables, over 60 MB data. The DTS package that comes with SQL Server 2000 seems pretty "messy" in the sense that it assumes that one needs to do one time import only or accurately it does not...
1
2766
by: Steve Claflin | last post by:
I have a database with a moderate number of records in several tables (the biggest table at the moment is about 800 records). In development it got moved between 2K and XP repeatedly. Several days ago, it wouldn't open, and proposed creating a backup before fixing. OK, but the "fixed version" didn't open -- same messages as the original -- but the backup did. But, in the 800 record table only 200 records appeared. We went back several...
9
4035
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then need to input this in an Access database, where I do a comparison with the Actual cost. The table “TblBudget” in Access is made of 4 fields, namely: (1) CostElement (2) CostCenter (3) Month (4) Amount$. At the moment this method is very cumbersome....
1
1701
by: Rob | last post by:
Hello, I am having an application in access 2000.I get a file via email which contains details of trouble tickets and i have set up this to be moved into a folder,outbox.I get this file as a .csv file.it is like this , Subject: ATS Daily Report "Ticket #","Operator ID","Date/Time Reported","Date/Time
1
3187
by: PeteCresswell | last post by:
I'm just starting in 2003, hoping to find a more direct route to editing/listing Import Specifications than in 2000 - where you have to initiatate an import, choose "Advanced", and then load a spec. Or is it still the same? If same, anybody have an idea why? Seems like a fairly glaring omission from the UI....
4
2270
by: pietlinden | last post by:
I almost feel stupid posting this, but maybe someone else understands what's going on here. I am importing a delimited text file, and have saved an import specification so that for the user the whole thing is essentially pushbutton. Except for some reason, it seems my import spec thinks summer is a good time to pack up and go on vacation, so when the user tries to run the import, I get error 3265 (missing spec), and the import...
1
1475
by: Howard Canaway | last post by:
Hello, I help maintain an Access 2000 front end for a rapidly growing business(our back end is Postgresql). As we grow we have concerns over the long term viability of Access 2000 to keep us going through all the growth we need. Having read a post by one Bruce Pick about some maximums that Access 2000 has we have grown a bit more concerned than we were before, currently we have about ~800 forms and reports and Bruce lists the maximum...
4
12562
by: chimambo | last post by:
I have 2 problems: 1. I want to import a single text file into an access table using a Macro. I am however getting an error that I need to put a specification name argument. What does this mean? It also suggests that I add a schema.ini in the source folder. What does this .ini do and how do I create and use it? 2. After this is resolved, I would like to be able to import several text files using a macro into the same table.
2
4126
by: Mimi | last post by:
In Access 2007, I have successfully imported a text file with fixed width fields. However the import did not correctly interpret a date. In the text file the date field had no delimiter, was just MMDDYYYY. This column appears empty in my table. It doesn't seem like this is a hard thing to do. Any suggestions? Marianne
0
9633
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9928
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8959
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7483
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.