As Any?

R

Ron Hinds

I'm trying to define a parameter to a function call "As Any" but I keep
getting an error message saying "Expected type". According to the Access
Help, Any disables type checking. If that's not the case, how declare a
parameter such that I can pass any data type to it? I have several user
defined types that I want to be able to pass to the same function. Each has
two data members in common that I want the function to fill in. But other
wise the UDT's are different.
 
G

Graham Mandeno

Hi Ron

"As Any" is only valid when declaring a function in an external DLL.

You say you tried "As Variant" and it was "no go". What was the problem?
That is the way to do it and it should work fine.
 
Top