E
Ethel
When I use the DatePart function on a table in one database to extract the
month I get message saying "There was an error compiling this function. the
Visual Basic module contains a syntax error. Check the code, and then
recomile it."
However, when I take a protion of the table to a new database with no
changes to test it and use the exact code it works. What I am using is:
month: DatePart ("mm",[2008 New Format leads]![Week Of])
I checked the format of the date field and it is in Date/Time format.
month I get message saying "There was an error compiling this function. the
Visual Basic module contains a syntax error. Check the code, and then
recomile it."
However, when I take a protion of the table to a new database with no
changes to test it and use the exact code it works. What I am using is:
month: DatePart ("mm",[2008 New Format leads]![Week Of])
I checked the format of the date field and it is in Date/Time format.