Ben_Entrew
Registered User.
- Local time
- Today, 08:28
- Joined
- Dec 3, 2013
- Messages
- 177
Hi all,
I want to append data to the FC_TEMP table with the condition that the time_period is same on FC_TEMP and Scrap_Sales_Forecast table.
Somehow it asks me to type in a parameter for Time_Period on FC_TEMP.
Can someone please help me here?
Thanks in advance.
Regards,
Ben
I want to append data to the FC_TEMP table with the condition that the time_period is same on FC_TEMP and Scrap_Sales_Forecast table.
Somehow it asks me to type in a parameter for Time_Period on FC_TEMP.
Can someone please help me here?
Thanks in advance.
Regards,
Ben
Code:
'Append Scrap Sales forecast to actual FC_TEMP table
Public Sub Append_Scrap()
DoCmd.RunSQL "INSERT INTO [FC_TEMP] SELECT Scrap_Sales_Forecast.* FROM Scrap_Sales_Forecast " & _
" WHERE FC_TEMP.[Time_Period] = Scrap_Sales_Forecast.[Time_Period]"
End Sub