NauticalGent
Ignore List Poster Boy
- Local time
- Today, 13:29
- Joined
- Apr 27, 2015
- Messages
- 6,750
I'm going to need a new monitor, the one I have cannot take a punch...
Here is my query - It is a QueryDef: qryExtDB
Not the way I normally do things, but I am not the lead dog in this race.
Why is it when I use the OpenQuery method it executes flawlessly, but when I try the CurrentDB.Execute method I get "Too Few Parameters, expected 7"?
There WHERE Clause includes PK field ([ID]) - In the past, if I included the PK in the SQL statement, it fixed the problem. Today, no dice.
Here is my query - It is a QueryDef: qryExtDB
Code:
UPDATE t_PRON_User_Data IN '\\orgeast\ACCESS_DBS-E\Aviation\AP\WMT_Code\Sandbox_Huntsville\User\WMT_User_PR.accdb' SET t_PRON_User_Data.[KO Assigned] = [Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[KO Assigned], t_PRON_User_Data.[PRON Received Date Buyer] = [Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[PRON Received Date Buyer], t_PRON_User_Data.[First Article Test Requirement] = [Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[First Article Test Requirement], t_PRON_User_Data.AMC_AMSC = [Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[AMC_AMSC], t_PRON_User_Data.[PRON Canceled] = [Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[PRON Canceled], t_PRON_User_Data.[PRON Canceled Date] = [Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[PRON Canceled Date]
WHERE (((t_PRON_User_Data.ID)=[Forms]![f_Item_Data_Status].[sf_PRON_RDD].[form].[ID]));
Not the way I normally do things, but I am not the lead dog in this race.
Why is it when I use the OpenQuery method it executes flawlessly, but when I try the CurrentDB.Execute method I get "Too Few Parameters, expected 7"?
There WHERE Clause includes PK field ([ID]) - In the past, if I included the PK in the SQL statement, it fixed the problem. Today, no dice.