Hello All,
I'm writing a function that I can pass a name of a table and column name and it will sort the table by the desired column. I'm testing it in pieces as I go. I started by recording a macro that sorts. To test my syntax for writing a function with variables, I took the code from my recording an put it in a function, then added variables that don't do anything yet. It works fine if I only include one variable to be passed to the function, but as soon as I add a second variable to be passed to the function I get an error in the sub I'm using to test the function. The error says "Expected =". Does anyone know why this is happening?
Thanks.
Here is my code:
Please Login or Register to view this content.
Bookmarks