Eikenhorst
Registered User.
- Local time
- Today, 17:43
- Joined
- Mar 9, 2007
- Messages
- 25
I wanted to do something very simple in VBA, to change the caption of a label so it shows some values loaded from a table.
The code should be:
Me.Label1.Caption = “Check if value is ≤ “& rst!Value< & “ and ≥ “ & rst!Value>
This gives me two problems. First VBA doesn’t know the ≥ and ≤ symbols since those are Unicode symbols only. But I do want to use those symbols instead of <= that would be clear to a programmer like me, but the users of this program would hardly understand that that means the same. So is there a way I can let VBA accept Unicode symbols?
Secondly, the name of the table row has an < at the end. If I use this name like this it thinks that it will be followed by something else to compare with. It isn’t handy this way, but for me it isn’t possible to change the row names, so any help would be greatly appreciated!
Thanks
The code should be:
Me.Label1.Caption = “Check if value is ≤ “& rst!Value< & “ and ≥ “ & rst!Value>
This gives me two problems. First VBA doesn’t know the ≥ and ≤ symbols since those are Unicode symbols only. But I do want to use those symbols instead of <= that would be clear to a programmer like me, but the users of this program would hardly understand that that means the same. So is there a way I can let VBA accept Unicode symbols?
Secondly, the name of the table row has an < at the end. If I use this name like this it thinks that it will be followed by something else to compare with. It isn’t handy this way, but for me it isn’t possible to change the row names, so any help would be greatly appreciated!
Thanks