Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

Write a record to a table by double-clicking a record selector in a datasheet form

I am trying to write a record to a table by double-clicking a record selector in a datasheet form.  But for some reason it is only writing the first record in the list rather that the one I am double-clicking on.  Here is the SQL of the append table query:  (Can someone tell me what I'm doing wrong?)

INSERT INTO tblCustomerAutoNotes ( Document, [Section], NoteCopyDD, NoteCopy, ForeColor, CustomerID, CustAutoNote )
SELECT tblEstimateNotes.Document, tblEstimateNotes.Section, tblEstimateNotes.NoteCopyDD, tblEstimateNotes.NoteCopy, tblEstimateNotes.ForeColor, [Forms]![frmEstimates]![cboCustomerID] AS CustomerID, tblEstimateNotes.CustAutoNote
FROM tblEstimateNotes
WHERE (((tblEstimateNotes.NotesID)=[Forms]![frmEstimates].[Form]![frmEstimateNotes].[Form]![txtNotesID]));

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SteveL13

ASKER

You are correct.  It is a subform.  And thank you.