How to display intrinsic constant as literal instead of numeric

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How does one return the literal/name of an intrinsic constant instead of its
byte value?

For example, CurrentProject.AllForms(1).Type returns "2", which means
nothing to me.
 
Brian said:
How does one return the literal/name of an intrinsic constant instead
of its byte value?

For example, CurrentProject.AllForms(1).Type returns "2", which means
nothing to me.

You can't, unless you have a lookup table (or Select Case logic) that is
appropriate to the property wherein the constant is stored. A value of
2 could mean lots of different things, depending on what property has
that value.

In this particular case, the .Type property of the AccessObject class is
defined to be a member of the acObjectTupe enumerated type. You can
look that up in the Object Browser and see what all the members of that
enum and what their values are.
 
Back
Top