![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I really need some help here. I'ce created a perl script that collect a lot of data for me and stores in a tab delimitered txt file that I want to import to my database. The problem is Access won't accept my data due to type conversion failure. All my time info is stored as "Jul 27 21:31" and I need to know what I can do to get Access to accept that and let me import all my data. Any help and suggestions would be wellcome. Expanding on what Karl wrote. |
#4
| |||
| |||
|
|
Thomas Andersson wrote: I really need some help here. I'ce created a perl script that collect a lot of data for me and stores in a tab delimitered txt file that I want to import to my database. The problem is Access won't accept my data due to type conversion failure. All my time info is stored as "Jul 27 21:31" and I need to know what I can do to get Access to accept that and let me import all my data. Any help and suggestions would be wellcome. Expanding on what Karl wrote. I did not get an error like you descibed that but it may be due to me manually doing a simple File/GetExternalData/Import and importing the data from a text file. The result I get for a date field like yours is #Num in the column. However, if I change the text file to alsoinclude a year it imports fine. So if you wrote a script that can get the month, day, hours, minutes could you now also add a year? If you can't, Karl's advice is spot on, IMO. |
#5
| |||
| |||
|
|
Expanding on what Karl wrote. I did not get an error like you descibed that but it may be due to me manually doing a simple File/GetExternalData/Import and importing the data from a text file. The result I get for a date field like yours is #Num in the column. However, if I change the text file to alsoinclude a year it imports fine. So if you wrote a script that can get the month, day, hours, minutes could you now also add a year? If you can't, Karl's advice is spot on, IMO. |
#6
| |||
| |||
|
|
Salad wrote: Expanding on what Karl wrote. I did not get an error like you descibed that but it may be due to me manually doing a simple File/GetExternalData/Import and importing the data from a text file. The result I get for a date field like yours is #Num in the column. However, if I change the text file to alsoinclude a year it imports fine. So if you wrote a script that can get the month, day, hours, minutes could you now also add a year? If you can't, Karl's advice is spot on, IMO. Adding a year is simple so I'll try that (just concatenate it in front of the variable). |
|
One related question. My DB also ahve auto number and to let it be generated by DB I can select to skip that column during inport. Q though is. Should I leave the import rows as is (starting with the first non auto data) or insert a empty tab at start of each row so column numbers match? I'm sorry. I really don't understand the question/issue. Do realize |
#7
| |||
| |||
|
|
I really need some help here. I'ce created a perl script that collect a lot of data for me and stores in a tab delimitered txt file that I want to import to my database. The problem is Access won't accept my data due to type conversion failure. All my time info is stored as "Jul 27 21:31" and I need to know what I can do to get Access to accept that and let me import all my data. Any help and suggestions would be wellcome. |
![]() |
| Thread Tools | |
| Display Modes | |
| |