Hello, I am trying to pass a value from a text box in a form (this value is to be entered by the user). I need this value for a graph that I am generating in a report (the query for the grpah is given below).
So for example if the user enters 100, 1000 is replaced by 100 and 800 is replaced by 80. right now I have it hard coded it in the sql statement below. Thanks for the your help.
SELECT (Format([Commit Dat],"Short Date")) AS Expr1, Sum([CurrentMonth Query For Graph].[Labour Hours Est]) AS [SumOfLabour Hours Est], 1000 AS [100% Capacity], 800 AS [80% Capacity] FROM [CurrentMonth Query For Graph] GROUP BY (Format([Commit Dat],"Short Date")), 1000, 800, (Int([Commit Dat]));
So for example if the user enters 100, 1000 is replaced by 100 and 800 is replaced by 80. right now I have it hard coded it in the sql statement below. Thanks for the your help.
SELECT (Format([Commit Dat],"Short Date")) AS Expr1, Sum([CurrentMonth Query For Graph].[Labour Hours Est]) AS [SumOfLabour Hours Est], 1000 AS [100% Capacity], 800 AS [80% Capacity] FROM [CurrentMonth Query For Graph] GROUP BY (Format([Commit Dat],"Short Date")), 1000, 800, (Int([Commit Dat]));
Last edited: