Results 1 to 2 of 2
  1. #1
    Randy.Wehnes is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    3

    Update Form with data from another form on click event

    Ok, have been reading posts and searching the internet for a week now and not able to get this going.

    Using Access 2010, have two tables: Census and Consult.

    Consult form is where data is first entered, such as Last Name First Name, Phone number etc. On this form is a check box named "Enroll"



    I have an enrollment macro that opens the Enrollment form and creates a new record for the Census Table.

    I created an OnClick event on the Enroll check box (Consult Form) that runs the enrollment macro. This part works fine, the enrollment form opens to a new record and permits data entry.

    I want to take the data in the Consult form and put it in the correponding fields in the enrollment form to cut down on data entry.

    Field name in Consult:
    CLast_Name

    Field name in Census:
    Last_Name

    I have tried to use such macro commands as SetLocalVar and SetTempVal but am not able to get the information copied over.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I think the macro command you're after is either SetValue or SetProperty (differs by version).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Dbl Click Event on Form Header
    By drunkenneo in forum Forms
    Replies: 1
    Last Post: 11-18-2013, 04:04 AM
  2. Replies: 1
    Last Post: 08-24-2012, 06:50 AM
  3. Replies: 3
    Last Post: 04-15-2012, 05:25 PM
  4. On Click Event For Button On Form
    By Desstro in forum Forms
    Replies: 3
    Last Post: 08-09-2010, 02:36 PM
  5. Form does not update after event
    By pedro in forum Forms
    Replies: 10
    Last Post: 12-23-2009, 07:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums