Link to home
Start Free TrialLog in
Avatar of Mark01
Mark01Flag 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

ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark01

ASKER

Thank you, John. I simply want to eliminate the blank lines in a text box because I use paragraph styles in another app to control the space between lines.
Ok.. thought you might needed something else