One Line Gap Required In Between 2 Sentences-Letter Writing (1 Viewer)

Ashfaque

Student
Local time
Today, 08:43
Joined
Sep 6, 2004
Messages
894
Hi,

I have 3 combo box on form namely CboStartSent, CboMidSent and CboLastSent.

All these combos are a collection of sentences which I am dropping to a big text box named WDetails (Long Text)

So when I select first sentence from first combo which is CboStartSent, the sentence goes to WDetails. And when second sentence selected from next combo which is CboMidSent, the second sentence places after first sentence. BUT I NEED my second selected sentence to place after leaving one line gap of first sentence.

I tried using vbcr in code but not worked.

Dim X, Y As String
X = Nz(Me.WDetails, 0)
Me.WDetails = X & vbCr & Me.CboMidSent.Column(0)

It is still placing one sentence after one. I need one blank line between 2 sentence/context.

Any help shall be appreciated.
 

Minty

AWF VIP
Local time
Today, 04:13
Joined
Jul 26, 2013
Messages
10,371
You will need two to add a blank line.

vbCrLf & vbCrLf

One will simply go to the next line.
Oh, and Dim X, Y as string means Y will be defined as a string and X will be a Variant because you haven't specified a type.
 

Ashfaque

Student
Local time
Today, 08:43
Joined
Sep 6, 2004
Messages
894
Thank you Minty.....

Fantastic.....
 

Users who are viewing this thread

Top Bottom