Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Memo to Text 1

Status
Not open for further replies.

alectek

Programmer
Jul 9, 2003
68
US
Hi!
I need to convert Memo field to Text field using Query.
The function {fn CONVERT (table1."field1", SQL_CHAR} returnig the Error.

Thanks a lot for any help.
Al.






 
This looks like SQL Server syntax. Should you be posting in forum183? This is the Access/JET SQL forum.
 
Golom,
yes, I need it in Acces.
I've table with the memo field and I need the same table with the text fields.

thanks.
Al.
 
You can use the Left() function in Access to reference a memo field and convert it to a string, though of course you'll be truncating it if its beyond the max length of a string (1K i think).

eg. MyString = Left(MyMemo,1024)

In SQL, simply refer to Left(MyMemo,1024); this will allow string operators to be applied to the expression.

HTH

Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top