W
Wei
I am getting a "Data Type Mismatch in criteria expression"
error when I tried to "sort" the results returned by a
query.
In this query, I joined the field "VEHCODE_YEAR" from a
table "table1" with the field "VehCOde_Year"
from "AVICC_CURR_MOD" table, and then I wrote the
following expression:
Expr2: IIf([AVICC_CURR_MOD]![CP/SP]="A" Or Len(Trim
([AVICC_CURR_MOD]![CP/SP]))=0,0,(IIf([SEF38]=1,4,0)+
[AVICC_CURR_MOD]![CP/SP]))
datatype for SEF38 is number.
The joined fields have the same datatype: VEHCODE_YEAR"
and "VehCode_Year" are both text. And [AVICC_CURR_MOD]!
[CP/SP] is text.
The wired thing is that this query runs and returns
results. But when I try to sort these results, it gives me
the datatype mismatch error..
Pleeease help...
Wei
error when I tried to "sort" the results returned by a
query.
In this query, I joined the field "VEHCODE_YEAR" from a
table "table1" with the field "VehCOde_Year"
from "AVICC_CURR_MOD" table, and then I wrote the
following expression:
Expr2: IIf([AVICC_CURR_MOD]![CP/SP]="A" Or Len(Trim
([AVICC_CURR_MOD]![CP/SP]))=0,0,(IIf([SEF38]=1,4,0)+
[AVICC_CURR_MOD]![CP/SP]))
datatype for SEF38 is number.
The joined fields have the same datatype: VEHCODE_YEAR"
and "VehCode_Year" are both text. And [AVICC_CURR_MOD]!
[CP/SP] is text.
The wired thing is that this query runs and returns
results. But when I try to sort these results, it gives me
the datatype mismatch error..
Pleeease help...
Wei