I would like to pass the type of MS Access objects to a function. From an earlier question I know that you can test for TableDef, form, QueryDef, etc. types using TypeOf... is. But I do not know what the types of the results are and how to pass them to a new function that doesn't have access to the original object.
I'd like to be able to pass something like CStr(TypeOf(object)) but TypeOf doesn't seem to be able to be called outside of the TypeOf... is statement.
I guess I could create a helper function that tests for object types I'm interested in and returns a string or enum. But if someone knows how to pass the object type, that would be a lot simpler!