Heenan, Lambert
Lambert.Heenan at AIG.com
Mon Feb 9 16:18:22 CST 2004
.Controls(sLabelName).Caption = mrs("Foo") & VbCrLf & mrs("Bar")
should do the trick.
Lambert
> -----Original Message-----
> From: Christopher Hawkins [SMTP:clh at christopherhawkins.com]
> Sent: Monday, February 09, 2004 5:18 PM
> To: accessd at databaseadvisors.com
> Subject: [AccessD] Programmatically adding line breaks to a label
> caption?
>
> Here's my deal. I need to squeeze two line sof text inot a label
> caption, and I need to do it programmatically. I've tried doing this:
>
> .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar")
>
> And that leaves me with a label that has a little square character
> between the Foo and Bar text. There's GOT to be a way, and I'm
> betting this list knows what it is.
>
> Heeeeeeeeeeeeeeeeeeeeeeelp...
>
> -Christopher-
>
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com