J
Jean-Marie
Hi,
I have in my app 2 queries that work great, I am trying to build a union out
of them, but I get a “data type mismatch in criteria expression†message when
I run the union query. I can not see what’s wrong
The queries are:
SELECT tblIncome.NberPlateInc, tblIncome.DateInc, tblIncome.AmountInc,
NameDrv([NberPlateInc],[DateInc]) AS Driver, "Income" AS Transaction FROM
tblIncome;
and
SELECT tblExpenses.NberPlateExp, tblExpenditures.DateExp,
tblExpenses.AmountExp, NameDrv([NberPlateExp],[DateExp]) AS Driver, "Expense"
AS Transaction FROM tblExpenses;
NameDrv is a public function that retrieves the ID of the driver who drove
the vehicule whose plate number is provided as argument at a date also
provided.
Can someone help me to understand why I am getting this message?
Many thanks in advance.
I have in my app 2 queries that work great, I am trying to build a union out
of them, but I get a “data type mismatch in criteria expression†message when
I run the union query. I can not see what’s wrong
The queries are:
SELECT tblIncome.NberPlateInc, tblIncome.DateInc, tblIncome.AmountInc,
NameDrv([NberPlateInc],[DateInc]) AS Driver, "Income" AS Transaction FROM
tblIncome;
and
SELECT tblExpenses.NberPlateExp, tblExpenditures.DateExp,
tblExpenses.AmountExp, NameDrv([NberPlateExp],[DateExp]) AS Driver, "Expense"
AS Transaction FROM tblExpenses;
NameDrv is a public function that retrieves the ID of the driver who drove
the vehicule whose plate number is provided as argument at a date also
provided.
Can someone help me to understand why I am getting this message?
Many thanks in advance.