PC Review


Reply
Thread Tools Rate Thread

display memo field on a form based on the value of another field

 
 
=?Utf-8?B?SmVycnkgaW4gdGhlIERlc2VydC4=?=
Guest
Posts: n/a
 
      13th Jun 2007
I want to display the contents of a memo field on a form based on the users
selection on three selections. The problem I am running into is that there
is no "row source" or "row source type" for me to put the select statement in
for a memo field in the properties section. If I change the field to a text
field, I can make it work, but I run into the 255 char limit of access. Can
anyone tell me how to accomplish this?
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      14th Jun 2007
On Wed, 13 Jun 2007 11:29:03 -0700, Jerry in the Desert. <Jerry in the
Desert.@discussions.microsoft.com> wrote:

>I want to display the contents of a memo field on a form based on the users
>selection on three selections. The problem I am running into is that there
>is no "row source" or "row source type" for me to put the select statement in
>for a memo field in the properties section. If I change the field to a text
>field, I can make it work, but I run into the 255 char limit of access. Can
>anyone tell me how to accomplish this?


You can set the control source of the textbox to

=DLookUp("[memofield]", "[tablename]", "[ID]=" & [Comboboxname])

where the combo's bound column is the unique id of the record containing the
desired memo. You cannot put the content of a memo field (which, remember,
might be over a billion bytes!) into a combo box without truncating it.

John W. Vinson [MVP]
 
Reply With Quote
 
=?Utf-8?B?SmVycnkgaW4gdGhlIERlc2VydC4=?=
Guest
Posts: n/a
 
      14th Jun 2007
Thanks John, that did it.

"John W. Vinson" wrote:

> On Wed, 13 Jun 2007 11:29:03 -0700, Jerry in the Desert. <Jerry in the
> Desert.@discussions.microsoft.com> wrote:
>
> >I want to display the contents of a memo field on a form based on the users
> >selection on three selections. The problem I am running into is that there
> >is no "row source" or "row source type" for me to put the select statement in
> >for a memo field in the properties section. If I change the field to a text
> >field, I can make it work, but I run into the 255 char limit of access. Can
> >anyone tell me how to accomplish this?

>
> You can set the control source of the textbox to
>
> =DLookUp("[memofield]", "[tablename]", "[ID]=" & [Comboboxname])
>
> where the combo's bound column is the unique id of the record containing the
> desired memo. You cannot put the content of a memo field (which, remember,
> might be over a billion bytes!) into a combo box without truncating it.
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display/Hide a Form Control/Field Based On Another Field Value? PowerLifter1450@gmail.com Microsoft Access Forms 7 3rd Nov 2007 08:27 PM
Display/Hide a Form Control/Field Based On Another Field Value? PowerLifter1450@gmail.com Microsoft Access Form Coding 7 3rd Nov 2007 08:27 PM
Is there a way to define an unbound text field as a memo field on a form. Kevin Sprinkel Microsoft Access Forms 0 27th Apr 2004 08:56 PM
Re: Display a field on a form based on certain criteria Gerald Stanley Microsoft Access Forms 0 17th Mar 2004 05:37 PM
Display a field on a form based on certain criteria Peter Microsoft Access Forms 0 17th Mar 2004 05:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:38 PM.