Results 1 to 4 of 4
  1. #1
    waiflam is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2015
    Location
    Vancouver, BC
    Posts
    2

    Auto-populate data entry form field with previous data

    Hello,



    I'm new to this forum and fairly new to Access, Please bear with me if i'm not clear on my question..

    I'm trying to create a database at work that allows users to enter information for a bi-weekly update report for their projects and it is structured like this :

    ID - autonumber
    Project Name - Combobox drop down from a table of projects
    Reporting Date
    Bi-weekly update content - Memo field with Rich Text

    There is a pop up data entry (blank) form for the users to enter new update reports. Because a lot of the information in "Bi-weekly update content" gets carried over to the next report on the same project, what I need to do is in the data entry form have the "Bi-weekly update content" field auto populate with the data that's in the previous report of the same project after the user selected the project in the combobox.. I have searched online for hours but still couldn't figure it out. any advice is very much appreciated !

    Thank you in advance,

    Wayne

  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
    How about this in the after update event of that control?

    http://access.mvps.org/access/forms/frm0012.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    waiflam is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2015
    Location
    Vancouver, BC
    Posts
    2
    Thank you Paul,
    looks like the code would bring data just entered and carry it to the next new record. however what my situation require is that it pulls data already entered previously according to the Project selected by the user.

    Example: records already in database
    Project A - Feb 20 2015 - No Update
    Project B - Feb 19 2015 - Lots of Work
    Project C - Feb 13 2015 - Stable
    Project C - Feb 23 2015 - Over Budget

    When the user click enter new data, a blank data entry form pops up, user select Project C from the combo box, the Update box would show as "Over budget" and if user select Project A, "No Update" will show up automatically without anything just being entered. is it possible ?


    Thanks a bunch

  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
    Try creating the queries here:

    http://www.baldyweb.com/LastValue.htm

    so you have a query that gets the last status for each project. Then you can use a DLookup() to get the last status from that and put it on the form.
    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. Replies: 1
    Last Post: 08-10-2014, 04:06 PM
  2. Replies: 2
    Last Post: 07-07-2014, 09:19 AM
  3. Replies: 3
    Last Post: 07-26-2012, 03:55 PM
  4. Replies: 6
    Last Post: 04-27-2012, 01:31 PM
  5. Replies: 1
    Last Post: 12-21-2011, 02:11 PM

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