SQL:
SELECT [EXPENSES-QRY].ΟΧΗΜΑ, [VEHICLES-TBL].ΜΑΡΚΑ, [VEHICLES-TBL].ΜΟÎΤΕΛΟ,
[VEHICLES-TBL].ΣΗΜΕΙΩΣΕΙΣ, [EXPENSES-QRY].[Ένδειξη ΚοντÎÏ Î Ïοηγ],
[EXPENSES-QRY].[Ένδειξη ΚοντÎÏ Î¤ÎµÎ»], [EXPENSES-QRY].EκφÏ1,
[EXPENSES-QRY].[ΚαÏσιμα Καταναλ (λίτÏα)], [EXPENSES-QRY].[ΚαÏσιμα (ΕΙΔΟΣ)],
[EXPENSES-QRY].[ΚαÏσιμα Καταναλ (ευÏÏŽ)], [EXPENSES-QRY].[Λιπαντικά (λίτÏα)],
[EXPENSES-QRY].[Λιπαντικά (ευÏÏŽ)], [EXPENSES-QRY].[Ανταλ/κά Συν
ΔΕΗ-ΕμποÏίου], [EXPENSES-QRY].[ΕÏγασία Εξωτ ΣυνεÏγείων],
[EXPENSES-QRY].[ΕÏγατικά ΣυνεÏγείων ΔΕΗ], [EXPENSES-QRY].EκφÏ2,
[EXPENSES-QRY].[Ακινησία Ολική (ημÎÏες)], [EXPENSES-QRY].[Ακινησία λόγω
Βλάβης (ημÎÏες)], [EXPENSES-QRY].Σημειώσεις, [EXPENSES-QRY].[ÎΗΣΙ-ΜΟÎΑΔΑ],
[EXPENSES-QRY].ΗΜΕΡΟΜΗÎΙΑ, [EXPENSES-QRY].ΕΚΔΟΤΗΣ, [EXPENSES-QRY].[Îο
ΠΑΡΑΣΤΑΤΙΚΟΥ], [EXPENSES-QRY].ΠΟΣΟ
FROM [VEHICLES-TBL] INNER JOIN [EXPENSES-QRY] ON [VEHICLES-TBL].[ΑΡ ΚΥΚΛ] =
[EXPENSES-QRY].ΟΧΗΜΑ
WHERE ((([EXPENSES-QRY].ΟΧΗΜΑ)=IIf([FORMS]![MAIN FORM]![vehicle] Is
Null,[ΟΧΗΜΑ],[FORMS]![MAIN FORM]![vehicle])) AND
(([EXPENSES-QRY].[ÎΗΣΙ-ΜΟÎΑΔΑ])=IIf([FORMS]![MAIN FORM]![region] Is
Null,[ÎΗΣΙ-ΜΟÎΑΔΑ],[FORMS]![MAIN FORM]![region])) AND
(([EXPENSES-QRY].ΗΜΕΡΟΜΗÎΙΑ)<=[FORMS]![MAIN FORM]![date2] And
([EXPENSES-QRY].ΗΜΕΡΟΜΗÎΙΑ)>=[FORMS]![MAIN FORM]![date1]));
Ο χÏήστης "Jerry Whittle" ÎγγÏαψε:
That's a "This expression is typed incorrectly, or it is too complex to be
evaluated. For example, a numeric expression may contain too many
complicated elements. Try simplifying the expression by assigning parts of
the expression to ..." error.
There's probably something going on with the query that uses the form.
Access 2003 is a little more picky about parameters especially if they are in
a crosstab query.
Show us the SQL for the query. Open the query in design view. Next go to
View, SQL View and copy and past it here.