Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Proper Way To Update Memo Field? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    The follwing code works.

    This what I get::
    *** User: mgmgg Update: October, 20 2004 at: 5:23:39 PM ***
    *** User: mgmgg Update: October, 21 2004 at: 5:25:59 PM ***

    This is what I want:
    *** User: mgmgg Update: October, 21 2004 at: 5:25:59 PM ***
    *** User: mgmgg Update: October, 20 2004 at: 5:23:39 PM ***

    How can I code the following so that the most current entry is on the top pushing the older entrys down?

    Thanks, John

    <pre>Private Sub Form_BeforeUpdate(Cancel As Integer)

    Me.memNote2 = Me.memNote2 _
    & "*** User: " & CurrentUser() _
    & " Updated: " & Format(Date, "mmmm, d yyyy") _
    & " at: " & Time() & " ***" _
    & vbCrLf

    End Sub
    </pre>


  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Proper Way To Update Memo Field? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Just change your code to

    Private Sub Form_BeforeUpdate(Cancel As Integer)

    Me.memNote2 = "*** User: " & CurrentUser() _
    & " Updated: " & Format(Date, "mmmm, d yyyy") _
    & " at: " & Time() & " ***" _
    & vbCrLf & Me.memNote2

    End Sub
    Regards
    John



  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Proper Way To Update Memo Field? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Thank you John Hutchison

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •