var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: month function
I am trying to write a function to look at a date field that has a format of:1/21/2010 and change the numerical month to an abbreviated textual month such as: Jan.
"When I run the query, it gives me an eror of " wrong number of arguments used with function in query expression 'datetomonth([obdate])'
Here is the function:
Public Function datetomonth()
They are all in red too..which makes me think I did something wrong.
you haven't told datetomonth() about any arguments it's supposed to accept...
I am pretty new at this....
Aren't the arguments underneath?
Teddy appears to be offline. No, those aren't the arguments. Here's a very basic primer, but it shows where the arguments should be:
That makes sense that I need something between the (). What argument would I need for the mission I am trying to accomplish?
This is a situation I wouldn't bother writing a function for. Why, when the MonthName function is already doing it for you (as would the Format function):
I should have added that the logical thing to pass would be the date, amending your function to accept it and return the month. But again, I wouldn't bother. You're writing a function that does nothing more than the built-in function does.
I will shift my thinking. I hate doing extra work!