[AccessD] MEMO fields in UNIONS

Jim DeMarco Jdemarco at hshhp.org
Wed Feb 12 13:20:00 CST 2003


This will return the first 255 characters of the field correct?  Off the top of my head, couldn't you write a function that returns a string containing the entire contents of the Memo field?  A string variable can hold more than 255 characters as in:

<snip>
Dim s As String
Dim i As Integer
    s = String(500, "x")
    MsgBox Len(s)
    For i = 1 To Len(s)
        Debug.Print i & Mid$(s, i, 1) 'just to prove they're all there!
    Next i
</snip>

So why not write a function that returns the memo field in a string
Function ConvertMemo2String(MyMemo as String)
  ConvertMemo2String = MyMemo
End Function

Usage:
	Select ConvertMemo2String([MyMemoField])...

It's a WAG but worth a try.

HTH,

Jim DeMarco
Director of Product Development
HealthSource/Hudson Health Plan


-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk]
Sent: Wednesday, February 12, 2003 1:52 PM
To: Mark A Matte
Subject: Re: [AccessD] MEMO fields in UNIONS


Hi Mark

Yes:

    Select Left([fldMemo],255) ...

/gustav

> Anyone have a workaround or method of displaying MEMO fields in a UNION
> query?

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************




More information about the AccessD mailing list