Hi,
I have a query and in the field i have
This will run the function below with the number 10 in (this month anyway)
The problem is, instead of then putting the value of field 10 (within the query) it actually puts in txt off [10].
Any ideas?
I have a query and in the field i have
Code:
Expr1: FieldName(Format(DateSerial(2005,Month(Date())-1,1),"mm"))
Code:
Function FieldName(MMonth)
FieldName = "[" & MMonth & "]"
End Function
The problem is, instead of then putting the value of field 10 (within the query) it actually puts in txt off [10].
Any ideas?