Update query to add text to form

N

Nick

Hi

I have an update query that adds text to a memo field. problem is the txt is added directly after the last character. How do it get it to add the text to a new line in the text box? I have tried using various combinations of macros

Thank

Nic
 
T

Tony C

Do you call the query from a command button or vba code?
If you do then you could edit the code to add Chr(13) to
the end of the field before running the query.

Tony C

-----Original Message-----
Hi,

I have an update query that adds text to a memo field.
problem is the txt is added directly after the last
character. How do it get it to add the text to a new line
in the text box? I have tried using various combinations
of macros.
 
F

fredg

Hi,

I have an update query that adds text to a memo field. problem is the txt is added directly after the last character. How do it get it to add the text to a new line in the text box? I have tried using various combinations of macros.

Thanks

Nick
No macros needed. Just do it in the update query.

Update YourTable Set YourTable.MemoField = MemoField & chr(13) &
chr(10) & "Your new text.";
 

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