I am trying to use the code shown below in the AfterUpdate event of a text box to remove extra lines, but I get a compile error (syntax error). Please help. test_050221.mdb Source of code: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_access-mso_other-mso_2007/how-can-i-replace-carriage-returns-in-access-2007/286313e9-fb6f-e011-8dfc-68b599b31bf5