How to display intrinsic constant as literal instead of numeric

B

Brian

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.
 
D

Dirk Goldgar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top