Results 1 to 4 of 4
  1. #1
    WAVP375 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171

    Passing data from one form to another

    A form with a list box shows job number and job description A selection in the list box populates two tex boxes on the for. A second list box shows a list of course numbers and course name. Likewise a selection from the list box populates two text boxes on the form. The form is bound to a table. The form is closed and the new record is saved. Since there will be multiple entries with the same job but different courses I am looking for a way to save the job number and name to populate those text boxes when I open the same form again.



    Is there a reasonably simple way to accomplish this.

  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
    During the same session you could save the values to a global variable, TempVar, or hidden textbox on a form that remains open and use that to populate the values when the form loads. To hold the values after Access is closed, you'd need to save them to a table, use database properties or the registry.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    WAVP375 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    Looks like global variable is going to be my solution.

    Thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help.
    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. Passing Data From One Form to Another
    By CharlieK in forum Access
    Replies: 19
    Last Post: 10-31-2016, 07:48 PM
  2. Replies: 3
    Last Post: 07-20-2012, 11:55 PM
  3. Passing Data from on Form to Another..
    By ETCallHome in forum Forms
    Replies: 2
    Last Post: 03-12-2011, 12:26 AM
  4. Form not passing data to query
    By bobfin in forum Queries
    Replies: 13
    Last Post: 08-11-2010, 05:28 AM
  5. Passing data to sequential form fields
    By jeepfamilyva in forum Forms
    Replies: 0
    Last Post: 06-28-2009, 11:04 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