I have a query, which uses a function, GetNumWeeks(), but how do I add 1 to the value of GetNumWeeks(), increasing its' value from 13 to 14? Then how do I reset it to the default value, which is 13, when the next EmployeeNumber comes-up? I tried this:
IIf([JuryVacCount]>2,(GetNumWeeks()+1))
I got a new column, with the number 14 in it, instead of 14 rows of data, I did get the 13 rows, though. Thanks you again for any help, when this finished I am done with this quert and I am of to test land. Here is the function:
Function GetNumWeeks()
GetNumWeeks = 13
End Function
IIf([JuryVacCount]>2,(GetNumWeeks()+1))
I got a new column, with the number 14 in it, instead of 14 rows of data, I did get the 13 rows, though. Thanks you again for any help, when this finished I am done with this quert and I am of to test land. Here is the function:
Function GetNumWeeks()
GetNumWeeks = 13
End Function