473,386 Members | 1,943 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,386 software developers and data experts.

List Box Column to Memo truncates at 255 characters

Hi Everybody

I have a Listbox that has a Memo field attached to it's 2nd column
which on double click copies the memo field to another Memo Field.

Forms![frmCustomerWriteInvoice]![MemoCustomerNotes] =
ListClassification.Column(1)

My problem is that the receiving Memo Field Truncates at 255
characters

I have checked in the tables to see if it is connected to a memo
field, but thats not the problem.

Also, the List box was not made with the wizard and definately has the
field in question column(1) a Memo field.

Anyone got any ideas

Thanks in advance

Bob Dydd

smiley Bob
Nov 13 '05 #1
2 5204
Hi Bob,

Instead of adding a memo field to your list box you could have some
other text field on your form. When a user selects from the list box,
the contents of the memo field for the selected record get displayed in
a text box. If the user double clicks on the list box selection you
take the record ID (column(0) is popular for that) and copy the contents
of the memo field for that record to your other table:

Private Sub List1_DblClick(Cancel As Integer)
Dim strSql As String, str1 As String
str1 = DLookUp("Memofld", "tbl1", "ID = " & List1.Column(0))
strSql = "Update tbl2 Set MemoFld = '" & str1 & "' Where ID = " &
List1.Column(0)
DoCmd.RunSql strSql
End Sub

If your memo field contains large data, DAO may be faster than DLookUp.
DLookUp may even have some limitations and how much data it can return
(don't really know about that).

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #2
DFS
Bob Dydd wrote:
Hi Everybody

I have a Listbox that has a Memo field attached to it's 2nd column
which on double click copies the memo field to another Memo Field.

Forms![frmCustomerWriteInvoice]![MemoCustomerNotes] =
ListClassification.Column(1)

My problem is that the receiving Memo Field Truncates at 255
characters

I have checked in the tables to see if it is connected to a memo
field, but thats not the problem.

Also, the List box was not made with the wizard and definately has the
field in question column(1) a Memo field.

Anyone got any ideas
Use an ID in your listbox to retrieve the Memo contents from the table. I
use this, for instance, to show a help topic or long description on the
screen.

The OnClick event of your listbox will contain something like this:

Me.lblDescription.caption = ""
Me.lblDescription.caption = DLookup("MemoField","Table","ID = " &
me.listBox.column(n) & "")

Thanks in advance

Bob Dydd

smiley Bob

Nov 13 '05 #3

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

Similar topics

3
by: GorDon | last post by:
Hi, I have a report based on a query. The query grabs a memo field from my main table, yet when I display the memo field in the report it truncates the memo field (the field needs to hold more...
8
by: skinnybloke | last post by:
Hi - I have a problem with a memo field being truncated to about 255 characters when running a Access 2002 query. This only seems to happen if I use SELECT DISTINCT. It works ok using SELECT by...
0
by: jimmyshaw83 | last post by:
I am sorry if this topic is tired, but after all that I have read I am still in the woods here. I have built a database to handle weekly and monthly reports of what people are doing. They submit...
3
by: Laurie | last post by:
I am using Automation in Access 2003 to open a Word Document and fill in some values using bookmarks. It all works perfectly except for one section. I am filling in some values in a previously...
8
by: Taffman | last post by:
I've searched this goup for an answer to this, there are many discussions that come close but non that I can find that actually addresses this particular problem. I'm exporting queries to Excel....
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...
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...
4
by: JerryB | last post by:
I'm having a problem w/MS Access truncating a memo field in a report at 256 characters. I'm using MS Access 2000. Any suggestions appreciated.
0
by: johnvonc | last post by:
I am using Access 2003, and trying to Export query results in code to a csv file. I am using DoCmd.TransferText. When I run the query, there are two memo fields: Description and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.