473,569 Members | 2,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2007: importing text date

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
Oct 15 '08 #1
2 4106
Mimi wrote:
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?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you import the text file use the Advanced button on the import
dialog box. This will display the import specification dialog box.
There are boxes that contain the date month/day/year delimiters - delete
anything in those boxes. Check the CheckBox for "Leading Zeros." This
will tell Access to read dates like 1/1/08 as 010108. Check the
CheckBox for "4-digit years." In the Fields specifications (in the
lower section of the specification dialog box) make sure the date field
has a Date/Time data type.
--
MGFoster:::mgf0 0 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBSPaGMoechKq OuFEgEQJTigCfaw 3UzAphQ3VieQR4h bNSN/VbNyEAoO5b
t1jL2sMNwb+7B/pQofkvrKVK
=rXSI
-----END PGP SIGNATURE-----
Oct 16 '08 #2

"MGFoster" <me@privacy.com wrote in message
news:W8******** *************** *******@earthli nk.com...
Mimi wrote:
>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?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you import the text file use the Advanced button on the import
dialog box. This will display the import specification dialog box.
There are boxes that contain the date month/day/year delimiters - delete
anything in those boxes. Check the CheckBox for "Leading Zeros." This
will tell Access to read dates like 1/1/08 as 010108. Check the
CheckBox for "4-digit years." In the Fields specifications (in the
lower section of the specification dialog box) make sure the date field
has a Date/Time data type.
--
Thanks for your response.

But it didn't seem to work. I don't quite understand your last sentence. In
the Import specification box, the Fields specifications don't have any type
specification, just a field name, start column and width. (and a check box.)
There is a blank field to the left and two blank fields (columns) to the
right. The corresponding field in the recipient table is Date/Time.

Thanks again for your help.

Marianne
Oct 16 '08 #3

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

Similar topics

1
8166
by: mark | last post by:
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...
9
4026
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:...
2
3593
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records that are "dirty" i.e. the field contents do not comply with the expected format (date/time) and they end up in a seperate table of import errors....
2
4765
by: denisel | last post by:
Hi, We will be conducting surveys through SurveyMonkey online and will be importing the answers by tab delimited or comma delimited file into access. I was wondering if there is specific way to import delimited files into Access or Is there a specific way I should design the survey online so Access can recognize the file? Here is my table...
6
5592
by: venmore | last post by:
Hi Can someone please point in the right direction. I have an XML file that gets updated every 4 hours on a web server. I can check the XML modification time in ASP and compare to the databse. If it is newer, I need some ASP code to then import the XML into Access. Been trawling the net for an answer for a while - no joy thanks
8
2416
by: Trev | last post by:
Hi Can anyone point me in the right direction here, I would like to open a table in access 2003 by date. I have an asp web page which needs to read data from a table with each days today's date (which ever day that is) then a new table is created with today's date. Example: I have a table called 17-may-2007 my ASP page reads this table...
8
2891
by: saladinator | last post by:
I have created an Excel spreadsheet that has a lot of data. What I want to do is import the spreedsheet to Access and create a form so that I can print each row per page in a proffessional manner. The problem is that whenever I import the data to access my dates show up in 38478 instead of 05/06/05. How can I convert this number back to...
1
1834
by: BulbFresh | last post by:
Hi, Quick one for you, i'm importing a file which has a long date and time format, so once imported i update each date field with the correct format (dd/mm/yyyy). I wrote this in on click of a button in Access 2007 which works great: DoCmd.RunSQL ("UPDATE " & tName & " SET = Format(,'dd/mm/yyyy'), = Format(,'dd/mm/yyyy');") However...
9
4483
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd like to know is the stability, speed & ease of use of both the products. I believe Access 2007 has a new file format too and that it may be...
0
7605
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...
0
8118
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...
1
7665
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...
0
6277
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...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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...
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.