I am not sure what's wrong with my syntax for my INSERT INTO query. Does anyone see anything right off the bat?
I am not that great with SQL but I don't see anything wrong.
Just to attempt to fix it, I did put ' ' around the double quotes for each entry, which still did not fix it.
Thanks
Code:
CurrentDb.Execute "INSERT INTO WhatIfAwdPayoutTbl ( WhatIfPytDate, WhatIfPytUnits, WhatIfAwardID, WhatIfAwardDate, WhatIfAwardUnits, WhatIfEmployeeID, WhatIfForfeitedUnits )" & _
"VALUES (#" & FirstPayoutDate & "#, " & rs!WhatIfPytUnits & ", " & rs!WhatIfAwardID & ", #" & rs!WhatIfAwardDate & "#, " & rs!WhatIfAwardUnits & ", " & rs!WhatIfEmployeeID & ", " & rs!WhatIfForfeitedUnits & ")", dbFailOnError
Just to attempt to fix it, I did put ' ' around the double quotes for each entry, which still did not fix it.
Thanks
Comment