Update:
I have abandoned my attempt at trying to run a SQL statement in VBA - I was told you cannot do so on a linked local table - not sure why, but I'm done arguing with the Syntax Error...
My code now consists of simply calling a query I built in the query builder - it looks ridiculously verbose...but it works....the VBA SQL code is below
Code:
UPDATE TblOOTDetail_New SET TblOOTDetail_New.DateFirstKeyed = [Forms].[FrmOOTTracking_New].[TxtFirstKeyDte].[Value], TblOOTDetail_New.OOTReasonCode = [Forms].[FrmOOTTracking_New].[CboOOT].[Value], TblOOTDetail_New.DipReason = [Forms].[FrmOOTTracking_New].[CboDIP].[Value], TblOOTDetail_New.ResearcherComments = [Forms].[FrmOOTTracking_New].[TxtComments].[Value], TblOOTDetail_New.ResearcherIntls = [Forms].[FrmOOTTracking_New].[TxtRschrini].[Value], TblOOTDetail_New.AssigndToAssociate = [Forms].[FrmOOTTracking_New].[cboAttToAssoc].[Value], TblOOTDetail_New.AssigndToDepartment = [Forms].[FrmOOTTracking_New].[CboAttToDept].[Value], TblOOTDetail_New.ManagerComments = [Forms].[FrmOOTTracking_New].[txtMgrComments].[Value], TblOOTDetail_New.Program = [Forms].[FrmOOTTracking_New].[CboProgram].[Value], TblOOTDetail_New.Researched = 'STR'
WHERE (((TblOOTDetail_New.RecrdID)=[Forms]![FrmOOTTracking_New]![TxtRcrdID]));
Problem is... and now I understand what Paul was saying about the Write Error - because now that is the error I'm dealing with.
What I am trying to do is simply fill in the rest of a record that is partially uploaded -
Thus the user will open the UI and it is populated with records that need to be researched and the data is added through an Update Query - seems simple to me
The form is a Continuous with Cycle set to All Records and the controls bound - The portion of the record that is uploaded populates textboxes and the researched data is filled in with txt & combo boxes & an
update query
Ideally, when one record is has been completed I want it to 'go away' using a filter that will just leave the remaining records needing to be worked...
I hope this helps you guys help me
Thanks...