squares instead of vbCR

F

fishqqq

Me.Notes = "THIS IS A STATUS UPDATE" & vbCr & vbCr & "Shipment Status"


Can anyone tell me how to get this code to do the "carriage return"
instead of putting little squares where the returns should be? the
field Notes is a Memo field (if that means anything).

Thanks
Steve
 
F

FireGeek822

Replace vbCr with vbcrlf - "Carriage Return/Line Feed" is what you are
looking for.

Tammy
 
F

fishqqq

Tks Tammy,
works perfectly.
i noticed now that what this does is erace what was previously place in
the field NOTES with the current information. How do i get this to
"carriage Rtn" a couple of lines and input the current information
WITHOUT eracing what was previously in that field?

tks
Steve
 
F

FireGeek822

Steve,

You will need to call out the item in that field and then concatenate
it with your new information.

SQL = "SELECT * FROM tblName WHERE ....
SET RS = CurrentDB.OpenRecordset("SQL")
RS.Edit
RS![NotesField] = RS![NotesField] & vbCrlf & vbCrlf & NewNotesItem
RS.Update
RS.Close

Hope this helps.

T-
 
F

fishqqq

Sorry Tammy
you just went over my head ... not sure how to call out the field in
question.

can you walk me through it?
-S
 
D

Duane Hookom

Me.Notes = Me.Notes & vbCrLf & vbCrLf & "THIS IS A STATUS UPDATE" & vbCrLf &
vbCrLf & "Shipment Status"
 

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

Similar Threads


Top