Results 1 to 5 of 5
  1. #1
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128

    Question Method to Reuse past Values for New Date?

    I have a form that is basically general information. The information changes maybe once every two or three weeks.

    I have a date field with a date picker to choose a past or future date. I have a combobox with all the definitive dates that already have data. And I have a Search button so that a known date can be found quickly.

    What I am looking to do is to be able to go to a date that has values already, and save those values as a new date. Anyone have any ideas on how to do this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Probably require running an SQL INSERT SELECT action. Review this http://msdn.microsoft.com/en-us/library/ms188263.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128
    From what the article states it seems that I would need to use a SELECT subquery to add data to more than one row, but I believe this would be for only new rows? I'm not very strong with SQL so I'm still puzzled as to how this would allow someone to save those values to a new date...

    BTW, half the stuff I look up on the net pops up with your posts!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    The INSERT SELECT would add one or more rows depending on the criteria of the SELECT subquery. If the criteria filters data so that only one unique record is selected then only one record will be created.

    Only Half!
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128
    I think I understand how this could work - in terms of how to insert information into a table with SQL - but I am not getting how this will help me tell Access to take the previous data values supplied by a specific date, and add them to a different date specified by the user.

    Maybe VBA could help?

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

Similar Threads

  1. Past Due (30, 60, or 90)
    By claysea in forum Database Design
    Replies: 8
    Last Post: 02-11-2013, 03:22 PM
  2. Autocop and past when 2 values are the same
    By FuzzFuzz in forum Access
    Replies: 1
    Last Post: 03-07-2012, 10:52 PM
  3. Count days past a set date
    By tsn.s in forum Access
    Replies: 2
    Last Post: 12-01-2011, 09:49 AM
  4. Replies: 2
    Last Post: 10-08-2011, 06:33 PM
  5. Date Past Function
    By Laney in forum Access
    Replies: 4
    Last Post: 05-21-2008, 07:19 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