Can anyone help
I am trying to run an append query using insert into in visual basic and thought I could simply copy from the SQL into the code window for my form
I have pasted the following but no matter what I try to change in terms on syntax I cannot seem to get it right
Docmd.Run SQL INSERT INTO [LWDC (LWDC) UNEXPECTED] ( [3 Digit Category], Budget, [Jan Actuals], [Feb Actuals], [Mar Actuals], [Apr Actuals], [May Actuals], [Ju Actuals], [Jul Actuals], [Aug Actuals], [Sep Actuals], [Oct Actuals], [Nov Actuals], [Dec Actuals], [Commitment to Spend], [Total Spend] )
SELECT [Cost Authorisation Spend Report UNEXPECTED Append Table].[3 Digit Category], [Cost Authorisation Spend Report UNEXPECTED Append Table].Budget, [Cost Authorisation Spend Report UNEXPECTED Append Table].[Jan Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Feb Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Mar Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Apr Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[May Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Ju Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Jul Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Aug Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Sep Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Oct Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Nov Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Dec Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Commitment to Spend], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Total Spend]
FROM [Cost Authorisation Spend Report UNEXPECTED Append Table];
I am trying to run an append query using insert into in visual basic and thought I could simply copy from the SQL into the code window for my form
I have pasted the following but no matter what I try to change in terms on syntax I cannot seem to get it right
Docmd.Run SQL INSERT INTO [LWDC (LWDC) UNEXPECTED] ( [3 Digit Category], Budget, [Jan Actuals], [Feb Actuals], [Mar Actuals], [Apr Actuals], [May Actuals], [Ju Actuals], [Jul Actuals], [Aug Actuals], [Sep Actuals], [Oct Actuals], [Nov Actuals], [Dec Actuals], [Commitment to Spend], [Total Spend] )
SELECT [Cost Authorisation Spend Report UNEXPECTED Append Table].[3 Digit Category], [Cost Authorisation Spend Report UNEXPECTED Append Table].Budget, [Cost Authorisation Spend Report UNEXPECTED Append Table].[Jan Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Feb Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Mar Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Apr Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[May Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Ju Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Jul Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Aug Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Sep Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Oct Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Nov Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Dec Actuals], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Commitment to Spend], [Cost Authorisation Spend Report UNEXPECTED Append Table].[Total Spend]
FROM [Cost Authorisation Spend Report UNEXPECTED Append Table];