Results 1 to 3 of 3
  1. #1
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130

    Question Append Query Issue

    I have created an append query to add data to my table tbl2GrantTrainers which has only two fields (GrantID ; TrainerID)



    the append query is set up as follows:

    field: ID
    table: tbl1Grants
    Append to: GrantID
    Criteria: [Forms]![frmAddNewGrant]![ID]

    field: ProviderID
    table: tbl1TrainingProviders
    Append to: TrainerID
    Criteria: [Forms]![frmAddClassesToGrant]![cboTrainingProvider]



    I get no error on the query, also have stepped through code and it executes the line of DoCmd.OpenQuery aqryAddTrainerToGrant but it does not actually add anything to the table. I know it is probably something simple that I am missing. Any help would be greatly appreciated.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    While in design view of your Query, you can switch to SQL View. Post your SQL here so we can see a little more info.

  3. #3
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130
    INSERT INTO tbl2GrantTrainers ( GrantID, TrainerID )
    SELECT tbl1Grants.ID, tbl1TrainingProviders.ProviderID
    FROM tbl1TrainingProviders RIGHT JOIN (tbl1Grants LEFT JOIN tbl2GrantTrainers ON tbl1Grants.ID = tbl2GrantTrainers.GrantID) ON tbl1TrainingProviders.ProviderID = tbl2GrantTrainers.TrainerID
    WHERE (((tbl1Grants.ID)=[Forms]![frmAddClassestoGrant]![cboGrantID]) AND ((tbl1TrainingProviders.ProviderID)=[Forms]![frmAddClassestoGrant]![cboTrainingProvider]));

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

Similar Threads

  1. Access can't append all the records in the append query
    By fluffyvampirekitten in forum Access
    Replies: 2
    Last Post: 08-27-2015, 01:53 AM
  2. Replies: 4
    Last Post: 02-11-2014, 05:37 PM
  3. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  4. #Deleted issue with Delete/Append Query
    By WendyCha in forum Access
    Replies: 4
    Last Post: 08-05-2011, 08:34 AM
  5. Replies: 7
    Last Post: 07-21-2011, 01:01 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