text field - start the new line

M

Maria

I have 2 text fields - one enabled, one disabled. The
disabled text field stores the information, the enabled
text field serves like an "input" field to add the
information to the disabled field. I would like to have a
new line of record in the disabled field when I add new
information. Right now it is just adding on the same line.
Is it possible? I know there is such command in C++, not
sure about Visual Basic.
Please advise!
thanks a lot
maria
 
P

PC Datasheet

Put the following code in the AfterUpdate event of the enabled textbox:

If IsNull(Me!NameOfDisabledTextbox) Then
Me!NameOfDisabledTextbox = Me!NameOfEnabledTextbox
Else
Me!NameOfDisabledTextbox = Me!NameOfEnabledTextbox & Chr$(10) & Chr$(13)
End If
 

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