Query for a memo field

G

giannis

I need a query that take the first row of a memo field and
put this in an other field (for all the records).
How can specify the first row of a memo ?
 
G

giannis

Thanx very mutch !!! I used the query :
UPDATE table SET field = Left([memo],InStr([memo],Chr(13)+Chr(10))-1)
and all are done !!!!


Arvin Meyer said:
The first row is not defined in a memo field unless there is a carriage
return and line feed (vbCrLf) or if used in a query Chr(13) & Chr(10).
Unless you can use that, or some other method to define what a first row is,
you won't be able to extract it.

If you can use it, simply wrap an InStr() function with the Left() function
(aircode):

NewField: Left([MemoField], InStr([MemoField], Chr(13) & Chr(10)))
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access

giannis said:
note : only if the field is empty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top