Roger Bell said:
Thanks Dirk for your prompt reply. I have inherited a data base with two
separate memo fields and the Data in one memo field needs to be ADDED to
the
other memo field and then the defunct field removed.
Now he tells me!
If I use the Update
query as you kindly suggested, then the contents of the field are
replaced.
Yes, that's right.
Is there a way I can copy the contents of 1 field to the other?
Sure. The only question is whether you want to insert some sort of
delimiter between the original text and the copied text. To simply append
the field contents without a delimiter:
UPDATE YourTable
SET MemoField2 = MemoField2 & MemoField1
WHERE MemoField1 Is Not Null
If you want to insert a space between them (but only if the target field is
not Null):
UPDATE YourTable
SET MemoField2 = (MemoField2 + " ") & MemoField1
WHERE MemoField1 Is Not Null
If you want to insert a new line between them (but only if the target field
is not Null):
UPDATE YourTable
SET MemoField2 = (MemoField2 + (Chr(13) & Chr(10))) & MemoField1
WHERE MemoField1 Is Not Null
Note: in the last two queries above, I've used the trick that (Null +
"string") yields Null, while (Null & "string") yields "string".