OnClick take data in memo field and write to memo field on another form

Posted on 2005-05-03
Last Modified: 2012-05-05
When a users clicks, I wish to take the value that is shown in a Memo field EventDateInitial on form Event_Type_And_Details and add this into the memo field ContactDetails on form Aim_Contacts.  

To make this a little more difficult, I wish for the user to be able to use this option to add the data from the EventDateInitial field onto a new line at the TOP of the memo filed ContactDetails.  So each time the user clicks on the button it takes the value from field EventDateInitial on Form Event_Type_And_Details adds a fresh line to the TOP of the field ContactDetails on Form Aim_Contacts and in this new line inserts the data across.

Hope this makes sense

Question by:wobbled
    LVL 15

    Accepted Solution

    I think if you put something like this in your "OnClick" even, it should work:

        Forms!Aim_Contacts!ContactDetails = Me!EventDateInitial & VBCRLF & Forms!Aim_Contacts!ContactDetails

    This is assuming that the button that the user clicks in on your "Event_Type_And_Details" form.
    LVL 17

    Author Comment

    Excellent - just what I needed
    LVL 15

    Expert Comment

    Happy to help!
    God bless!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    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…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now