B
Brian
I can't figure out what I have done wrong in trying to get a cross tab query
to recognise parameter dates.
In design view the parameter is -
(Field is TransDate)
Between [Forms]![Main Menu]![txtstartdate] And [forms]![Main
Menu]![txtenddate]
In query view the statement is -
PARAMETERS [forms]![Main menu]![txtstartdate] DateTime, [forms]![main
menu]![txtenddate] DateTime;
TRANSFORM Sum([PLINV&EXPPart2].Amt) AS SumOfAmt
SELECT [PLINV&EXPPart2].TransDate
FROM [PLINV&EXPPart2]
WHERE ((([PLINV&EXPPart2].TransDate) Between [Forms]![Main
Menu]![txtstartdate] And [forms]![Main Menu]![txtenddate]))
GROUP BY [PLINV&EXPPart2].TransDate
PIVOT [PLINV&EXPPart2].DebExp;
When I try to run the query from a user input form I get the error message
"Microsoft Jet database does not recognise " as a valid field name or
expression".
I relied a lot on good community help in getting this far so my SQL
knowledge at its limit at this point.
Can anyone help?
to recognise parameter dates.
In design view the parameter is -
(Field is TransDate)
Between [Forms]![Main Menu]![txtstartdate] And [forms]![Main
Menu]![txtenddate]
In query view the statement is -
PARAMETERS [forms]![Main menu]![txtstartdate] DateTime, [forms]![main
menu]![txtenddate] DateTime;
TRANSFORM Sum([PLINV&EXPPart2].Amt) AS SumOfAmt
SELECT [PLINV&EXPPart2].TransDate
FROM [PLINV&EXPPart2]
WHERE ((([PLINV&EXPPart2].TransDate) Between [Forms]![Main
Menu]![txtstartdate] And [forms]![Main Menu]![txtenddate]))
GROUP BY [PLINV&EXPPart2].TransDate
PIVOT [PLINV&EXPPart2].DebExp;
When I try to run the query from a user input form I get the error message
"Microsoft Jet database does not recognise " as a valid field name or
expression".
I relied a lot on good community help in getting this far so my SQL
knowledge at its limit at this point.
Can anyone help?