L
Leo Hamal
Hello I am a newbie in Access 97.
When I run the query :
SELECT DISTINCTROW MAX (TbTrans1.Date)
FROM TbTrans1
WHERE (((TbTrans1.Date) BETWEEN #01-jan-07# AND #31-jan-07#);
I get the correct date.
When I run the query :
SELECT DISTINCTROW MAX (TbTrans1.Date), (TbTrans1.NewBal)
FROM TbTrans1
WHERE (((TbTrans1.Date) BETWEEN #01-jan-07# AND #31-jan-07#);
I get error message : You tried to execute query that doesn't include the
specified expression 'NewBal' as part of an aggregate function.
When I take out MAX , I do get the full list of all transactions of January
correctly.
Any help would be much appreciated,
Leo.
When I run the query :
SELECT DISTINCTROW MAX (TbTrans1.Date)
FROM TbTrans1
WHERE (((TbTrans1.Date) BETWEEN #01-jan-07# AND #31-jan-07#);
I get the correct date.
When I run the query :
SELECT DISTINCTROW MAX (TbTrans1.Date), (TbTrans1.NewBal)
FROM TbTrans1
WHERE (((TbTrans1.Date) BETWEEN #01-jan-07# AND #31-jan-07#);
I get error message : You tried to execute query that doesn't include the
specified expression 'NewBal' as part of an aggregate function.
When I take out MAX , I do get the full list of all transactions of January
correctly.
Any help would be much appreciated,
Leo.