Access 2016 VBA I can’t break my lines of code. I have googled for hours and I have tried every combination of [ _ & ] I can think of. What’s the secret?
The line continuation character is space + underscore, so " _"
If you are constructing a string, then you need to terminate the string, ampersand it to the next line, add your line continuation, and then restart your string, like...
Code:
dim tmp as string
tmp = "This is a string that is so long, we will continue its " & _
"construction on the next line."
...but otherwise you can just continue the line, like...
Code:
Private Function LongListOfParams( _
Param1 as string, _
Param2 as string, _
Param3 as string)
The line continuation character is space + underscore, so " _"
If you are constructing a string, then you need to terminate the string, ampersand it to the next line, add your line continuation, and then restart your string, like...
Code:
dim tmp as string
tmp = "This is a string that is so long, we will continue its " & _
"construction on the next line."
...but otherwise you can just continue the line, like...
Code:
Private Function LongListOfParams( _
Param1 as string, _
Param2 as string, _
Param3 as string)