Question : Monthname function in Access and Infopath

If a create a query in Microsoft Access with a single column with the expression "Expr1: Int(12)", running the query produces a single column recordset with lots of records with the value 12.

If I then connect to this query from Infopath, I can run the query and see the records.

If I change the function from Int() to Monthname(), it produces December in all the records in the query when run in Access, but the Infopath query returns an error saying that Monthname() is an undefined function. This seems extraordinary since, like Int(), Monthname() is built in to Access, and I can substitute my own functions successfully.

Is this a problem for multiple built-in functions, why is it a problem and what can I do about it?

Answer : Monthname function in Access and Infopath

So what happens if you use

StrConv(Format(DateSerial(2000, intMonth, 1), "mmmm"), 3)

or just

Format(DateSerial(2000, intMonth, 1), "mmmm")

in the query?

/gustav
Random Solutions  
 
programming4us programming4us