Ok, That is a constant and the full command should be:
DoCmd.RunCommand acCmDRecordsGotoNew
It would definitely be a syntax error if it stood alone. It could also be a syntax error if it is used where you can't add a new record.
And yes, a compile error could interfere with a control wizard. Try commenting out the offending line (put an apostrophe in front of the line) and see if fixes the problem.