473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Truncating memo fields importing csv

Using Office 2010 in Windows 7, I am getting import errors when I try to import a csv file into an existing table with some memo fields. The data destined for these fields is being truncated at 255 chars as if the fields were text.Any help appreciated. Thanks
Jan 17 '13 #1
9 4357
TheSmileyCoder
2,322 Expert Mod 2GB
If you do the import manually, you should be able to specify the field type during the import wizard. That import specification can be stored, and reused in for example code.
Jan 17 '13 #2
@TheSmileyCoder
Thanks but it doesn't give me this option if I am importing to an existing table, only if I create a new table every time.
Jan 17 '13 #3
NeoPa
32,556 Expert Mod 16PB
BillPiper:
Thanks but it doesn't give me this option if I am importing to an existing table, only if I create a new table every time.
That's not accurate Bill. I suspect you haven't read Smiley's comment carefully enough.

When you do an import manually, whether into a new table or an existing one, you get the opportunity of specifying many details about the import. You also get the opportunity to save this Import Specification for reuse at other times. If you do that, then any future imports can be made to use that named Import Specification, and thereby follow the way you have set it up.

Does that make the situation clearer?
Jan 17 '13 #4
Thanks. I think I am being thick but I cannot find the option to specify the field type. Using the wizard, I accept the 'delimited' nature as offered, then check the 'first row contains field names' and choose " as text identifier. The next step takes me to the table name and finish. I have tried going into the 'Advanced...' option and understand what you mean about saving the specifications but although I can see the field names listed on the left there doesn't seem to be a way of controlling their properties. Perhaps I have misinterpreted what you mean by 'manually' - do you mean without using the wizard at all? If you caan put me right I will be most grateful! Cheers.
Jan 18 '13 #5
NeoPa
32,556 Expert Mod 16PB
I'll do what I can, but your comment wasn't very full of information, so I can only explain it relative to that.

You indicated that you were able to do something when importing to new tables that you were unable to when importing to existing tables. I was simply pointing out that you could save the Import Specification when you import it into a new table then re-use that same Import Specification in future imports when loading into an existing table.

I ran a test myself, and it worked fine for me. The column in the Import Spec you need to set is called [Data Type]. Which bit are you having difficulty with? Re-using the Import Spec? Going into Advanced? It's hard to help unless you give a clear indication of where you get stuck.
Jan 19 '13 #6
Thanks for your patience! I understand what you mean and will give it a try. I never used to have this problem prior to moving to 2010 version - memo fields just impoted fine.
Jan 20 '13 #7
TheSmileyCoder
2,322 Expert Mod 2GB
Actually if you have not specified a field type, access will look at the first 25 rows(I believe 25 is the "magic" number) to determine the field type. If none of the first 25 rows are long enough to be a memo then it will treat it as text.

That is actually what can make it hard to spot, since the behavior can appear in-consistent.
Jan 20 '13 #8
NeoPa
32,556 Expert Mod 16PB
Smiley makes a very good point there. Importing suffers a great deal from Access determining things for you unless you're very specific. When importing from Excel it's even worse, as there is no way to specify how data should be treated. You have to rely on Access' best guess.
Jan 20 '13 #9
Thanks for all the help. I have saved an import spec and it is now working fine. I had fallen foul of the 'first 25 lines' problem before so had tried deliberately putting more than 255 chars in first line of data but that didn't do the trick - it got truncated as well. Never mind, problem solved. Thanks again!
Jan 21 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Remco Groot Beumer | last post by:
Hello, In an Access 97 database, there is a table that has some Memo-fields. Some of the memo-fields (not all) with a lot of text in it, display the data blurred all over each other (two...
13
by: ken | last post by:
I have 5 memo fields in one of my tables. I need to add 7 more. Will this be a problem? Am I being paranoid? Thanks
2
by: jacoballen | last post by:
I have a query that combines the results of three related tables. The memo fields are truncated to 255 characters, but I need all the information in them. I'm aware that removing code such as...
7
by: maffonso | last post by:
Hi guys, My table has a memo field. At the end of the month a run a report and I would like to concatenate the memo fields in a unique field by dept. Im thinking doing this through totals button...
3
by: Emily Jones | last post by:
This: TRANSFORM First(.Text) AS FirstOfText SELECT .Expr1000 FROM _allText GROUP BY .Expr1000 PIVOT .LetterSectionID; hangs the application if _allText.Text is a memo field. But it's fine...
10
by: ARC | last post by:
This is mainly a speed question. In this example: I have a QuotesHdr table that has a few memo fields. If these memo fields are used extensively by some users, and if their are a large number of...
2
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that...
4
by: Wayne | last post by:
I've been asked to construct a database which will require several memo fields. This database will be the standard frontend/backend mdb configuration. I have read many posts describing the...
7
by: munkee | last post by:
Hi all, I have 3 memo fields on my main table. I understand that they are susceptible to corruption over network environments. I am looking to move these memo fields in to seperate tables and I...
8
by: Jimmy Jones | last post by:
First of all - all answers that I could find via Google do not give me any explicit info as to how to handle this problem. So please - do not paste the following link for the hundreth time: ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...
0
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...

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.