Avatar of Mark01
Mark01
Flag for United States of America

asked on 

Access VBA - Syntax error

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

Replace([Author],Chr(10),Chr(13) & Chr(10))

Open in new window

Microsoft AccessVBA

Avatar of undefined
Last Comment
John Tsioumpris

8/22/2022 - Mon