Full Version: Carriage Return in a Label Caption Problem
UtterAccess Forums > Microsoft® Access > Access Forms
mac_baum
Depending on the situation, I need to change the contents of a label caption using VBA code.
The question I have is, how do I introduce a carriage return (eg vbCR) into the text string being written?
Can any one help?
Thanks.
doctor9
Mac,
think you're thinking of vbCrLf;
CODE
  
Me.Label0.Caption = "Test1" & vbCrLf & "Test2"

Hope this helps,
Dennis
mac_baum
Thank you. I should have known this.
doctor9
Glad to help!
Dennis
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.