473,404 Members | 2,178 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,404 software developers and data experts.

When exporting a report or query to Excel how can I get a memo field over 255 charac

I am exporting a report to Excel, but memo fields are being cut to 255 characters in length (as if they were text fileds). How do I get around this?.
Feb 25 '10 #1
6 4554
NeoPa
32,556 Expert Mod 16PB
Instead of exporting the data directly, create a query that shows the data and uses functions to return no more than the amount of data that an Excel cell can handle.

Messy, but then you're using Memo fields so you've already limited your options.
Feb 25 '10 #2
@NeoPa
I've checked, and an excel cell can handle more than 255 characters so I'm not sure why it cuts the data off at 255 characters. We need the field to contain more that 255 characters so I can't make it a text field? 255 characters is the largest text field you can hace isn't it? So I figure that somehow the export function is taking the memo field to be a txt field? Is this the case?
Feb 25 '10 #3
NeoPa
32,556 Expert Mod 16PB
@Tennotrumps
Because it's a Memo field I think. Read my post.
@Tennotrumps
You're not following the logic well here. Text fields and Excel cells can both handle >255 chars. Text fields aren't the problem (hence my post).
@Tennotrumps
No.
@Tennotrumps
No.

I just started some tests to ensure I was giving you accurate information. I found that my Memo field data was not truncated at 255 chars at all. I don't know what's happening to you, but I had text strings in my spreadsheet reaching 2,427 characters. I'm using Access & Excel 2003. What are you using? Particularly, which export format are you using?
Feb 26 '10 #4
I'm using Acsess 2007 and Excel 2003. I was wondering if I could change the memo field to a text field and if that would fix the problem. If there isn't a limit of 255 characters would that be the simplest way to fix it? I am using a report based on a query and then exporting this to excel. I will try exporting the query direct, however the report appears to work better for what we are doing.

Thanks for your help
Feb 26 '10 #5
NeoPa
32,556 Expert Mod 16PB
It seems I should apologise. Text fields are indeed limited to 255 characters. I've been feeding you wrong information all this time.

Having said that, I suspect that the reason this is failing is that the controls (rather than the fields) are limiting the data to 255 characters. Controls are objects like TextBoxes, ComboBoxes & ListBoxes that you find on Form or Report objects.

What you may like to consider, if it's a report you're exporting from, is to have various hidden controls to allow the export of all the data, but not show when the report is displayed or printed. This is assuming that exporting the underlying query is not good for you due to things like positions on the page of various controls.

So for instance, the query - assuming a field called [MemoField] - might be changed to :
Expand|Select|Wrap|Line Numbers
  1. SELECT ...,
  2.        [MemoField],
  3.        Mid([MemoField],1,255) AS [MF1],
  4.        Mid([MemoField],256,255) AS [MF2],
  5.        Mid([MemoField],511,255) AS [MF3],
  6.        ...
  7. FROM   ...
[MF1], [MF2] & [MF3] (and any others) would be 'shown' in hidden controls on the report. These should be included in the export, but if they are not, then you may need to consider making them visible, but put them behind something else on the report so they don't display.
Feb 26 '10 #6
I've retired simply exporting teh query and thedata goies through ok that way so I think I'll just rework teh query a little so it exports in teh format we need. That is by far the simplest way. I'm afraid your instructions above are a bit over my head - though I'll keep them in mind for when a I have a bit more time.

Many thanks
Feb 28 '10 #7

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

Similar topics

2
by: dixie | last post by:
I have just run into a problem where I have a text box control on a form that is linked to a memo field in a table. When I type a really long comment into the field, it allows me to type it and...
0
by: Jacky11 | last post by:
I have a table with several fields In the field "ImageName" I enter the name of the image for that record. The images can have multiple pages, so I want to save them as a Tif or Mdi file. I...
1
by: dulcie | last post by:
I'm trying to put the contents of a college library onto an Access db - problem is the long list of research papers going into one particular cell of one particular field. I can change this to a...
4
by: Anna | last post by:
Hi all, I have a query in ASP.NET that selects text from a memo field in Access (among other things). The query appears to be truncating the text at 255 characters. I've done a little research...
1
by: dave | last post by:
trying to query records with pattern "fund" in notes field notes is a memo field below code is not working SELECT SecondaryData.name, SecondaryData.notes, SecondaryData.address FROM SecondaryData...
0
by: ChrisN | last post by:
My app displays a dataset in a GridView and also exports it to Excel. Characters with diacritical marks (eg umlaut) show up just fine in the GridView but are mangled when exported to Excel. Eg ...
2
by: midlothian | last post by:
Hello Trying to update a memo field in an update query using the Replace function, and am getting a type conversion error. Here is my parameter: CStr(Replace(CStr(),"$",Chr$(13) & Chr$(10))) ...
3
by: jennwilson | last post by:
Access 2000 - I have developed a database that houses patient information. The patient information must be sent in an excel file to another company department. I know how to export my data to Excel...
2
by: cherylwalsh35 | last post by:
I am working in access - using a select Query. I am including a memo field. The table has all of the data in the memo field displayed - however when I run a select query and include the memo...
2
by: mccalla | last post by:
Hi, I am very new to MS Access. I have inherited an existing app which was done in MS Access 2003. In this app, there is a report which contains a memo field. There are no formats, functions,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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.