Results 1 to 3 of 3
  1. #1
    jmk0576 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Posts
    7

    Would like to copy a record found on a search form to a addNew form


    I have a project search form that can display multiple records based on multiple criteria. Would like to add a button which would allow the users to add a new project record with the values of the project selected on the project selection form. Not sure how I copy values from one form to the other. Do I need to specify each individual field or can I "clone" the selected record and add as new. Fairly new with all of this so any help will be greatly appreciated.

    Thanks,
    Julie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I would make 1 form serve both purposes.

    How many fields? Could run an INSERT SELECT sql action to first save record to table then open form filtered to that record. Something like:

    CurrentDb.Execute "INSERT INTO tablename(ProjectNum, field2, field3) SELECT " & Me.NewProjNum & " AS PN, field2, field3 FROM tablename WHERE ProjectNum=" & Me.ProjectNum
    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
    jmk0576 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Posts
    7
    Thanks, I'll give that a try.

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

Similar Threads

  1. Replies: 11
    Last Post: 12-22-2014, 01:57 PM
  2. search record if found open form.
    By cysklement in forum Access
    Replies: 3
    Last Post: 12-20-2014, 01:00 AM
  3. The search key was not found in any record
    By virtualprg in forum Import/Export Data
    Replies: 46
    Last Post: 08-26-2014, 10:51 AM
  4. Search key was not found in any record.
    By mgio in forum Access
    Replies: 2
    Last Post: 08-05-2014, 01:32 PM
  5. Replies: 7
    Last Post: 04-17-2013, 04:33 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