formatting memo field, currentuser,date

alcifer

Registered User.
Local time
Today, 16:51
Joined
Jan 7, 2002
Messages
14
Private Sub Command280_Click()
newnotes.SetFocus
notes = CurrentUser() & Now() & newnotes.Text & notes.OldValue
End Sub

The above code shows the gist of what I want.
The newnotes memo field is unbound, and the notes field is locked.
If I could format the text the way I wish, it would look something like this

Joe.Speedytyper 2002-07-04 10:00 am said:

blah blah blah

jenny.quickfinger 2002-07-01 10:10 am said:

really blah blah

and so on and so on

Trouble is, using concatenation, everything sticks together, I can't (or don't know how to) enter a carriage return or bold certain pieces of the text. Seems to me this is pretty ordinary trouble ticket type of stuff, but for the life of me I can't figure this one out. Please help, it is the last thing I need to do to complete my project!! Thanks.:confused:
 
You cannot easily embolden (is that an English word?) part of your string. If it were OK for you to display it as a message box, I could show you how to.
However, what you can do is for example force part of the text into Upper Case, and insert spaces and carriage returns: vbCrLf

Ex:
notes = Ucase(CurrentUser() & " " & Now() & " said:") & vbCrLf& vbCrLf & newnotes.Text & " " & notes.OldValue
 
Last edited:
thanks alot...
the spacing and stuff I was ok, it was the carriage return that I wasn't aware of. I'm not surprised that it was something relatively simple. Bolding the text is not that important, but if anyone else has any ideas...
 
You'll need to buy a third party control if you want to be able to support formatted text. You can find one at www.fmsinc.com
 

Users who are viewing this thread

Back
Top Bottom