Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 31st, 2007, 11:08 AM
Authorized User
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default Memo field doesn't show in Listbox

I have a query, a field within the query is a memo field. When the query itself is ran, it returns the data in the field fo the records. however, I'm trying to put the data into a listbox on a form and the field is not showing. I think the issue is because it is a memo field and want to use "SQL CONVERT" but can't figure out exactly how to use it. Any ideas for:

Table: tblTask
Field: TaskDescription

Old May 31st, 2007, 01:37 PM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

I am sure the problem is that the memo field exceeds the 255 characters or so that the list box will display. Find out how many characters it will hold for each column, and then do this (assume it holds 20 characters):

SELECT Left(TaskDescription, 20) As Task
FROM tblTask

The user is probably going to make their selection on those first few characters anyway, and not look for text about 40,000 characters in.

Did that help?

Old May 31st, 2007, 07:16 PM
Authorized User
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts

I actually switched it to a 'text' field instead of 'memo' field in the primary table, tblTask. I found out, through research, that fields with 'memo' properties cannot be displayed in listboxes without using a "SQL CONVERT" statement but couldn't find out exactly how I would word it for my situation. I only found examples of how to convert dates, times and numbers; not strings of words.

Oh well, it works now. Plus, I don't think that the field will go above / beyond 255 characters which is what I set if for.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memo Field Brendan Bartley Access 11 December 13th, 2007 04:28 PM
Memo field not displaying meichmann SQL Server ASP 3 August 31st, 2006 11:36 AM
sql error: memo field "LIKE" or "=" gilgalbiblewheel Classic ASP Databases 3 April 29th, 2005 07:16 AM
MEMO FIELD! With VB6 rolandatem Pro VB Databases 2 January 28th, 2005 10:49 PM
Pagefault from memo field dave_pollak Access VBA 0 November 24th, 2004 10:25 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.