Fear Naught
Kevin
- Local time
- Today, 19:52
- Joined
- Mar 2, 2006
- Messages
- 229
I make the caption on a button change for each record in my recordset.
I want it to read Print Report for [Customer Name]. This is easy with the code cmdReport.Caption = "Print Report for " & [CustomerName] and it works unless the customer name has an "&" in it then the character displays as an underscore
So examples.
Customer name equals Acme Corporation then the button displays
Print Report for Acme Corporation
However is customer name equals Bloggs & Bloggs Corporation the button displays:
Print Report for Bloggs _ Bloggs Corporation.
Does anybody know how to get round this?
I want it to read Print Report for [Customer Name]. This is easy with the code cmdReport.Caption = "Print Report for " & [CustomerName] and it works unless the customer name has an "&" in it then the character displays as an underscore
So examples.
Customer name equals Acme Corporation then the button displays
Print Report for Acme Corporation
However is customer name equals Bloggs & Bloggs Corporation the button displays:
Print Report for Bloggs _ Bloggs Corporation.
Does anybody know how to get round this?