473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Memo Fields in Access 2003

2
Hi, would really like your help - I'm having a problem with a memo field. I want to format a memo field so that I can put in a carriage return to move to a new line. Is there a way to easily add new text to this memo field when I reopen the form.

Thanks for your help

Alan
Feb 1 '08 #1
4 4587
sierra7
446 Expert 256MB
Hi Alan
I'm a little surprised that your Memo field has not had this set automatically (although it may depend on how you build your form)

If you select the control in Design mode, open Properties then go to the 'Other' tab and you will find 'Entry Key Behaviour'. Set it to 'New Line in Field'

I hope this is what you mean

S7

PS. I would check it has a vertical scroll bar too!

You also know that you can use Shift +F2 to 'zoom' any field but I find particiularly useful when I am forced to use Memo fields.
Feb 1 '08 #2
missinglinq
3,532 Expert 2GB
An Acccess form doesn't know a memo field from Adam! A textbox is a textbox is a textbox, regardless of the data type it holds. The default for Entry Key Behavior is Default, which is to say, whatever behavior is set under Tools - Options - Keyboard. Those choices are Don't Move, Next Field or Next Record. Move to new line can only be set as you've indicated, and the scrollbar(s) default to None, so this will have to be set if desired. If memory serves, they only appear when the textbox has focus.

If by "Is there a way to easily add new text to this memo field when I reopen the form" you mean can you automatically move to the end of the data already in the memo field, use this code, replacing YourMemoField with the actual name of your textbox.

Expand|Select|Wrap|Line Numbers
  1. Private Sub YourMemoField_GotFocus()
  2.  
  3. If Len(YourMemoField) > 32767 Then 
  4.   YourMemoField.SelStart =  32767
  5. Else
  6.   YourMemoField.SelStart =  Len(YourMemoField)
  7. End If
  8.  
  9. End Sub
Welcome to TheScripts, alany!

Linq ;0)>
Feb 1 '08 #3
sierra7
446 Expert 256MB
An Acccess form doesn't know a memo field from Adam! A textbox is a textbox is a textbox, regardless of the data type it holds.Linq ;0)>
Hi Linq
You've obviously stopped using the Wizard or the Field List icon when building new forms. The layout invariably needs changing but they save a lot of the more menial work.

Interesting code though to overcome the default settings of Behaviour Entering Field.

S7
Feb 4 '08 #4
pcchar
1
Hi!
This MS Access code was very helpful but I ran into one problem. If you apply the code in the 'On Got Focus' option in properties the code will fail when the memo field has not data entered. Now, I am very new to VBA coding but I was able to change the code to look as follows to eliminate the error when the memo field is blank. My form has 5 memo fields.

Private Sub YourMemoField_GotFocus()

If Len(YourMemoField) > 0 Then
YourMemoField.SelStart = 32767
Else
YourMemoField.SelStart = 0

End If

End Sub


Any way this code was very helpful in solving a data entry issue for my business customer. Thanks!
Oct 24 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: euang | last post by:
Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003, and I am having major problems displaying...
6
by: Shyguy | last post by:
I want to create two buttons on a form. One would allow the user to Copy the contents of the current records memo field, the other would allow them to print. I set up a report based on the memo...
2
by: jacoballen | last post by:
I have a query that combines the results of three related tables. The memo fields are truncated to 255 characters, but I need all the information in them. I'm aware that removing code such as...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
4
by: kaplan.gillian | last post by:
Hi everyone, I currently have an Access database that includes quite a few long memo fields. When I create a report of my data, Access does not allow the memo fields to be split with the page...
10
by: ARC | last post by:
This is mainly a speed question. In this example: I have a QuotesHdr table that has a few memo fields. If these memo fields are used extensively by some users, and if their are a large number of...
2
by: Shaia | last post by:
I have a third party tool that creates an Access 2003 database. In one table, there is a memo field that stores HTML chunks. These chunks represent "content" from a web page. If my content...
4
by: Charles | last post by:
Hello, I'm trying to find a good program to use for editing memo fields in Access 2003. I'd love to use Notepad or Wordpad, but the only option I'm really finding is a program called Total...
2
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that...
0
by: Max | last post by:
Hi I am trying to export an Access table to a fixed-width text file. The table contains 2 memo fields of approx. 1000 characters each. I am using the 'Export text wizard' to export. In this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.