T
Tom Brown
I have created a crosstab query for a form which I am putting into a report
as a subform. I have created a popup form which asks the user to enter the
Settle date which he wants the data in the report to contain. I am having a
problem getting the crosstab query to accept the parameters for the textbox
in the popup form where the date is entered. I keep getting the "Invalid
bracketing of name '[#Forms!frm_Settle_Date!txt_Settle_Date#]' " error. I
have tried the name without the #, and several other ways with no success.
The SQL for the crosstab is below.
PARAMETERS [[#Forms]!frm_Settle_Date![txt_Settle_Date#]] DateTime;
TRANSFORM Sum(tbl_Dep_Summary.Dep_Amt) AS Amount
SELECT tbl_Dep_Summary.Dep_Slip_No AS [Dep Slip No],
tbl_Dep_Summary.Bank_Acct_No AS [Acct No], tbl_Dep_Summary.Dep_Bank_Name AS
[Bank Name], tbl_Dep_Summary.Dep_No_Bags AS [No Bags],
tbl_Dep_Summary.Settle_Date AS [Settle Date], Sum(tbl_Dep_Summary.Dep_Amt)
AS [Dep Total]
FROM tbl_Dep_Summary
GROUP BY tbl_Dep_Summary.Dep_Slip_No, tbl_Dep_Summary.Bank_Acct_No,
tbl_Dep_Summary.Dep_Bank_Name, tbl_Dep_Summary.Dep_No_Bags,
tbl_Dep_Summary.Settle_Date
PIVOT tbl_Dep_Summary.Dep_Type;
Can someone please tell me how to set the parameters correctly?
Thanks,
Tom Brown
as a subform. I have created a popup form which asks the user to enter the
Settle date which he wants the data in the report to contain. I am having a
problem getting the crosstab query to accept the parameters for the textbox
in the popup form where the date is entered. I keep getting the "Invalid
bracketing of name '[#Forms!frm_Settle_Date!txt_Settle_Date#]' " error. I
have tried the name without the #, and several other ways with no success.
The SQL for the crosstab is below.
PARAMETERS [[#Forms]!frm_Settle_Date![txt_Settle_Date#]] DateTime;
TRANSFORM Sum(tbl_Dep_Summary.Dep_Amt) AS Amount
SELECT tbl_Dep_Summary.Dep_Slip_No AS [Dep Slip No],
tbl_Dep_Summary.Bank_Acct_No AS [Acct No], tbl_Dep_Summary.Dep_Bank_Name AS
[Bank Name], tbl_Dep_Summary.Dep_No_Bags AS [No Bags],
tbl_Dep_Summary.Settle_Date AS [Settle Date], Sum(tbl_Dep_Summary.Dep_Amt)
AS [Dep Total]
FROM tbl_Dep_Summary
GROUP BY tbl_Dep_Summary.Dep_Slip_No, tbl_Dep_Summary.Bank_Acct_No,
tbl_Dep_Summary.Dep_Bank_Name, tbl_Dep_Summary.Dep_No_Bags,
tbl_Dep_Summary.Settle_Date
PIVOT tbl_Dep_Summary.Dep_Type;
Can someone please tell me how to set the parameters correctly?
Thanks,
Tom Brown