donnatronious
MIS
I have query on a table with a field PayTypeNo that I am trying too specify criteria based on a parameter. The first code I have listed runs fine, however the second returns 0 rows when parameter 7201 is specified. Anyone know why. This code is listed in the criteria area of the PayTypeNo field in the query grid in Access.
Switch([DATES & DEPARTMENT]![DEPARTMENT]="7201","REGULAR",[DATES & DEPARTMENT]![DEPARTMENT]="5500","OVERTIME")
Switch([DATES & DEPARTMENT]![DEPARTMENT]="7201","REGULAR" or "OVERTIME",[DATES & DEPARTMENT]![DEPARTMENT]="5500","OVERTIME")
Switch([DATES & DEPARTMENT]![DEPARTMENT]="7201","REGULAR",[DATES & DEPARTMENT]![DEPARTMENT]="5500","OVERTIME")
Switch([DATES & DEPARTMENT]![DEPARTMENT]="7201","REGULAR" or "OVERTIME",[DATES & DEPARTMENT]![DEPARTMENT]="5500","OVERTIME")