What kind of variable?
If it's a Byte, these would be equivalent:
MyByte = 255
MyByte = &HFF
Or did you actually want a String variable:
MyString = "&H" & Hex(255)
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://www.yqcomputer.com/
Reply to group, rather than allenbrowne at mvps dot org.