Question : Format of week column - converted from date column

Dear experts,

I have converted a date column in access to week using the following:

Week: Format([TblALC]![Date],"ww")

The problem I have is that after the conversion the returned column is a "text" column not a "number" column. this means when i compare it to tables setup already with the week number in as a "number" format i get a data type mismatch error.

Is there any way to solve this problem.

Regards

Ritesh

Answer : Format of week column - converted from date column

Week: cInt(Format([TblALC]![Date],"ww"))

converts the value to an Integer

AW
Random Solutions  
 
programming4us programming4us