Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the maximum amount of arguments that a sub can have?

Status
Not open for further replies.

bigracefan

Programmer
Joined
Apr 2, 2002
Messages
304
Location
US
I'm getting a too many arguments error when I enter my arguments. Is there a maximum?

Thanks

Pete
 
what is the error number?


are you supplying more auguments than the sub has?
 
No I have a huge table that has over 100 fields. I was setting up the arguments that go into it. I get to a certain point that I get an error telling me that I have too many arguments.

Pete
 
From MSDN. . .

Too many arguments

A procedure can have only 60 arguments. This error has the following cause and solution: You specified more than 60 arguments. If you must specify more arguments, define a user-defined type to collect multiple arguments of different types, or use a ParamArray as the final argument and pass multiple values to it. You can also pass multiple arguments by placing them in an array.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top