Oops Sorry Allen you where right
just had to change the text box to
FirstOfModeOfPayment
Brilliant
Regards Bob
Okay, you do have a GROUP BY clause, so it is doing aggregation.
I'm not sure which of these is the memo, but whichever field it is,
choose First instead of Group By under that field (in the Total row in
query design.)
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
OOPS Had BillID listed twice...Regards Bob
SELECT Max(tblAccountStatus.BillDate) AS LastDate,
qryOverdueAll.Name,
tblAccountStatus.PaidAmount,
tblOwnerInfo.OwnerFirstName,
tblOwnerInfo.OwnerLastName,
tblAccountStatus.OwnerID,
tblAccountStatus.BillID1,
tblAccountStatus.BillID,
tblAccountStatus.BillID,
tblAccountStatus.ModeOfPayment
FROM (tblAccountStatus INNER JOIN tblOwnerInfo
ON tblAccountStatus.OwnerID = tblOwnerInfo.OwnerID)
INNER JOIN qryOverdueAll
ON tblOwnerInfo.OwnerID = qryOverdueAll.OwnerID
GROUP BY qryOverdueAll.Name,
tblAccountStatus.PaidAmount,
tblOwnerInfo.OwnerFirstName,
tblOwnerInfo.OwnerLastName,
tblAccountStatus.OwnerID,
tblAccountStatus.BillID1,
tblAccountStatus.BillID,
tblAccountStatus.BillID,
tblAccountStatus.ModeOfPayment
ORDER BY Max(tblAccountStatus.BillDate) DESC;
The symptoms suggest that Access is misunderstanding the data type of
the field, or aggregating it in some way.
Here's an example of what happens when JET mis-handles an aggregated
memo:
http://allenbrowne.com/bug-18.html
What is the Record Source of this subform?
If it's a query:
- Does it contain multiple tables?
- Does it use DISTINCT, UNION, or GROUP BY?
What's in the Link Master Fields / Link Child Fields?
Is the memo field mentioned in these properties?
Are you filtering on the memo field?
When I open my form my Form/sub form is correct but when I do a
filter on the sub form one text box shows 2 symbols a Chinese figure
and a box!