I am writing a query where I would like to group certain lab tests by month, so I am trying to separate out the individual months from the date field. I have tried to use DatePart but I cannot get it to work...I created a new field with the expression DatePart("m",[Date_of_Service]), but when I run the query, I get an Enter Parameter Value dialog box. I have tried to write the DatePart function several different ways, but I always get that parameter box.
I also tried to create a field to format the date: Format([Date_of_Service],"mm"), but that also gives me a parameter dialog box.
Any suggestions will be appreciated...this seems so simple, but it's driving me crazy!
LQ
I also tried to create a field to format the date: Format([Date_of_Service],"mm"), but that also gives me a parameter dialog box.
Any suggestions will be appreciated...this seems so simple, but it's driving me crazy!
LQ