I'm having trouble with the proper placement of the quotes for a Do.Cmd.RunSQL VBA statement. The SQL code works. Would someone add the DoCmd.RunSQL statement and quotes in the proper place for the below code ? Eventually, "Evans" will become a variable rather being hardcoded. Thanks ! ! !
INSERT INTO Individual_Spiritual_Gift_Totals ( Survey_Taker_First_Name )
SELECT [Spiritual_Gift_Totals].[Survey_Taker_First_Name]
FROM Individual_Spiritual_Gift_Totals, Spiritual_Gift_Totals
WHERE ((([Spiritual_Gift_Totals].[Survey_Taker_First_Name])="Evans"));
INSERT INTO Individual_Spiritual_Gift_Totals ( Survey_Taker_First_Name )
SELECT [Spiritual_Gift_Totals].[Survey_Taker_First_Name]
FROM Individual_Spiritual_Gift_Totals, Spiritual_Gift_Totals
WHERE ((([Spiritual_Gift_Totals].[Survey_Taker_First_Name])="Evans"));