Solved

I need help saving the value from a multiline text box in Access 2013.

Posted on 2014-12-24
4
748 Views
Last Modified: 2014-12-26
Hi Experts,
I need help saving text from a multi line textbox in ACCESS 2013.
I have set the text box's Enter Key Behavior to New Line in Field.  I have also added a verticle scroll bar to the text box.
In View mode, the text box acts like a multi line control.  The cursor moves to the next line when the enter key is pressed, and I am able
to enter multiple lines of text. I am also able to scroll up and down the control.
However, when I save the record, only the first line of text is saved.  How can I make it so all of the text is saved in the database from the
multiline?

Thanks in advance,
mrotor
0
Comment
Question by:mainrotor
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
Robert Sherman earned 400 total points
ID: 40516155
Are you sure only the first line of text is being saved to the table?   I just set up a quick sample database with a table containing both a Text field and a Memo field, as well as a form with both of those fields.  For both form fields I set the Enter Key Behavior to New Line in Field.  My tests show that in both fields multi-line text is saved.  

I'm attaching the sample file so you can compare the behavior on your system.  Note that I used Access 2010 for this, as I don't have 2013 on this machine.  I am not aware of any change in behavior between the versions with regard to multi-line text.
Database13.accdb
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 50 total points
ID: 40516297
As Robert has said, you need to look again.  It may only look like one line is there, but it  is all there.  

By default, a table display is one line per record, but if you expand the height of the rows, or cursor to the end of the line in the field, then hit right cursor, you'll jump to the next line.

Jim.
0
 
LVL 7

Expert Comment

by:Robert Sherman
ID: 40516317
Another trick is SHIFT-F2, which brings up a Zoom window specifically to see multi-line text from a smaller text field.
0
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 50 total points
ID: 40516325
You might also need to look at the data type (text or memo) and if text, the number of characters defined for the field in the table design.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question