RE: Appending to a data record
- From: Jerry Whittle <JerryWhittle@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Nov 2009 11:03:02 -0800
Sure. It would look something like below. A is the table name and O is the
field name.
UPDATE A SET A.O = Trim([O] & " " & "New text");
& " " & puts a space between the old and new text.
The Trim() function gets rid of any leading or trailing spaces. For example
if the O field was null or empty, there would be a space before New text.
I haven't tried this with a Memo field. Also remember that Text fields run
out at 255 characters.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
"BillA" wrote:
I need to do a select query based on a date and then add a note to a field in.
the database. In some cases there is already data in the field so I want to
append the data that is there. All I've seen is appending to another table.
So is it possible and do I use an append query to do it?
Thanks in advance for any help
Bill Alsdorf
- References:
- Appending to a data record
- From: BillA
- Appending to a data record
- Prev by Date: Re: Creating queries on the fly
- Next by Date: Complicated Query?
- Previous by thread: Appending to a data record
- Next by thread: RE: Appending to a data record
- Index(es):
Relevant Pages
|