PC Review


Reply
Thread Tools Rate Thread

Access 2003 Memo Fields

 
 
Timothy Millar
Guest
Posts: n/a
 
      17th Sep 2008
I have a memo field that end users enter in data. During the course of a day
multiple users would enter in additional or updated information. When the
end users enters the memoe field I have the date and time automatically
populate at the end of the previous users entry. I now need a way to enter
in a space or line so there is a break between the previous user's entry and
the current user's entry. Thank you
 
Reply With Quote
 
 
 
 
Jim Burke in Novi
Guest
Posts: n/a
 
      17th Sep 2008
Just concatenate vbcrlf (the VBA keyword for carriage return/line feed) twice
wherever in the field you need it, e.g.:

txtMemo = txtMemo & dateYouAreAdding & vbcrlf & vbcrlf



"Timothy Millar" wrote:

> I have a memo field that end users enter in data. During the course of a day
> multiple users would enter in additional or updated information. When the
> end users enters the memoe field I have the date and time automatically
> populate at the end of the previous users entry. I now need a way to enter
> in a space or line so there is a break between the previous user's entry and
> the current user's entry. Thank you

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      17th Sep 2008
Realistically, you're violating database normalization rules by putting
multiple pieces of data into a single field. You'd be best off storing each
comment as a separate line in a second table related to your existing table.

If you cannot (or will not) correct your design, you can add a carriage
return/line feed combination to the end of the memo field after you save it
using code like the following in the memo field's AfterUpdate event:

Private Sub YourMemoFieldControl_AfterUpdate()

Me.YourMemoFieldControl = Me.YourMemoFieldControl & vbCrLf

End Sub

(Replace YourMemoFieldControl with the correct control name)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Timothy Millar" <(E-Mail Removed)> wrote in message
news:EE31F274-13CA-4496-A65D-(E-Mail Removed)...
>I have a memo field that end users enter in data. During the course of a
>day
> multiple users would enter in additional or updated information. When the
> end users enters the memoe field I have the date and time automatically
> populate at the end of the previous users entry. I now need a way to
> enter
> in a space or line so there is a break between the previous user's entry
> and
> the current user's entry. Thank you



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In MS Access 2003, How do I print Memo Fields to AutoExpand? AppliedecoCindy Microsoft Access Forms 2 14th Jan 2010 02:32 AM
long memo access fields when loaded to excel 2003 with vb =?Utf-8?B?UC4gU2NhcmFt?= Microsoft Excel Programming 0 21st Nov 2007 12:04 PM
Access 2003 export to excel - truncated memo fields =?Utf-8?B?ZGluZ2xlNTc=?= Microsoft Access 1 14th Mar 2006 06:48 PM
Searching text in memo fields of Access 2003 =?Utf-8?B?RGF2aWQ=?= Microsoft Access Queries 1 7th Dec 2004 11:52 PM
Access 2003 append query truncates memo fields Microsoft Access Queries 2 2nd Aug 2004 08:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 PM.