L
LJS
I have a form with an unbound text box field [Enter Month] formatted to mmm
yy. I have similar 4 append queries such as
INSERT INTO LedgerAccounts ( Type, [Date], AcctNo, Debit, Credit )
SELECT ExpenseLedger.Type, Format([Date],"mmm yy") AS Exp1,
ExpenseLedger.AcctNo, Sum(ExpenseLedger.Debit) AS SumOfDebit,
Sum(ExpenseLedger.Credit) AS SumOfCredit
FROM ExpenseLedger
GROUP BY ExpenseLedger.Type, Format([Date],"mmm yy"), ExpenseLedger.AcctNo,
ExpenseLedger.Posted
HAVING (((Format([Date],"mmm yy"))=[forms]![PostingToGL].[Enter Month]) AND
((ExpenseLedger.Posted)=No));
I cannot get this filter to work from the HAVING statement when I operate
the command button linked to the macro OpenQuery.
Any suggestions? Thanks
yy. I have similar 4 append queries such as
INSERT INTO LedgerAccounts ( Type, [Date], AcctNo, Debit, Credit )
SELECT ExpenseLedger.Type, Format([Date],"mmm yy") AS Exp1,
ExpenseLedger.AcctNo, Sum(ExpenseLedger.Debit) AS SumOfDebit,
Sum(ExpenseLedger.Credit) AS SumOfCredit
FROM ExpenseLedger
GROUP BY ExpenseLedger.Type, Format([Date],"mmm yy"), ExpenseLedger.AcctNo,
ExpenseLedger.Posted
HAVING (((Format([Date],"mmm yy"))=[forms]![PostingToGL].[Enter Month]) AND
((ExpenseLedger.Posted)=No));
I cannot get this filter to work from the HAVING statement when I operate
the command button linked to the macro OpenQuery.
Any suggestions? Thanks