Results 1 to 3 of 3
  1. #1
    Lewis825 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    UK
    Posts
    19

    Moving Subform Data

    Hi Guys & Gals,

    VBA Noob here so bear with,

    I have a Subform displaying data from 2 tables which is filtered via a qry depandent on a value in a text box on the form.



    the aim is to moved the filtered results into another (3rd) table on the click of a button.

    Hope this makes sense?

    thanks in advance

  2. #2
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    DoCmd.RunSQL "INSERT INTO ThirdTable SELECT FROM FilteringQueryGoesHere"

  3. #3
    Lewis825 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    UK
    Posts
    19
    Click image for larger version. 

Name:	qry1.jpg 
Views:	5 
Size:	58.8 KB 
ID:	23953

    Super,

    I have tried this before will little luck

    here is the qry that runs the subform and filters the results

    how will i word this in the DoCmd.RunSQL command?

    Cheers

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

Similar Threads

  1. Moving fields from main form to subform
    By jtalka in forum Forms
    Replies: 2
    Last Post: 10-30-2015, 01:39 PM
  2. Replies: 1
    Last Post: 03-31-2015, 05:17 AM
  3. Replies: 3
    Last Post: 02-24-2013, 02:32 PM
  4. Subform moving line and label
    By hawkins in forum Reports
    Replies: 1
    Last Post: 08-16-2011, 11:15 PM
  5. Moving focus out of the subform
    By injanib in forum Forms
    Replies: 6
    Last Post: 06-20-2011, 03:45 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