I have a simple function that expects a string variable to be passed along to it.
My intent is to send the contents of a column from a table as this string, so basically for every row in my table I want to pass the contents over to my code and have it run.
So lets say I only had 3 rows in a table named 'Food' in a field named 'Fruit' that are:
apple
orange
banana
I want to call my function (lets pretend it is called Basket) for each of these.
I tried going to macros and making one using the run code command that said:
Basket([Food]![Fruit])
This didn't work though. Can anyone tell me what I'm doing wrong? Thank you much.
My intent is to send the contents of a column from a table as this string, so basically for every row in my table I want to pass the contents over to my code and have it run.
So lets say I only had 3 rows in a table named 'Food' in a field named 'Fruit' that are:
apple
orange
banana
I want to call my function (lets pretend it is called Basket) for each of these.
I tried going to macros and making one using the run code command that said:
Basket([Food]![Fruit])
This didn't work though. Can anyone tell me what I'm doing wrong? Thank you much.