Results 1 to 7 of 7
  1. #1
    brc is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    29

    Query Problems


    Trying to create a Rent Roll Report displaying rent paid each month on each property grouped by Owner. All payments are inputed into a table called Payment then I have a query which pulls all the records that are rent and I use that in the Rent Roll Query. Problem I am having that it displays all the payments to that property as separate records. I need the rent payments to one property during selected month to display in one record. If you need more info let me konw.
    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    With your query in design view, click on the Totals icon that looks like a Greek "E". Change the amount field from Group By to Sum and see what that does for you.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    brc is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    29
    Thanks for the reply! unfortunately that didn't work either. Still displays the records the same.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Likely you have too many fields included with Group By. What is the SQL of that query?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Or you have the date field included. It should just say Where.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    brc is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    29
    This Report is turning out to be quite complex and really confusing me. Here is the saved Query that I have the report using.
    Code:
    SELECT DISTINCT [Property Extended].[File As], [Property Extended].AddressMid, PropertyType.PropertyType, Company.CompanyName, [Active Leases].[Tenant Name], [Property Extended].ManagementFee, [Active Leases].EndDate, [Payments Rent].Amount AS [Rent Amt], [Active Leases].MonthlyLeaseAmount, [Rent Amt]-[MonthlyLeaseAmount] AS Balance, [Payments Rent].DatePaid
    FROM [Payments Rent] RIGHT JOIN ([Active Leases] RIGHT JOIN (([Property Extended] INNER JOIN PropertyType ON [Property Extended].Property.PropertyTypeID = PropertyType.PropertyTypeID) LEFT JOIN Company ON [Property Extended].CompanyID = Company.CompanyID) ON [Active Leases].PropertyID = [Property Extended].PropertyID) ON [Payments Rent].LeaseID = [Active Leases].LeaseID;

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Well, it doesn't look like you tried the Totals icon. The query would include a GROUP BY clause, and Sum() on the appropriate field(s). Another option you can use is to group by property on the report, include a textbox with =Sum(FieldName) in the group footer, and hide the detail section. It would be less efficient, but should yield the desired look.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Query export problems
    By Jedat in forum Access
    Replies: 4
    Last Post: 03-18-2011, 03:48 AM
  2. Problems with IIF in query
    By ducecoop in forum Access
    Replies: 1
    Last Post: 11-15-2010, 10:29 AM
  3. SQL Query Problems
    By slaterino in forum Queries
    Replies: 2
    Last Post: 08-26-2010, 09:06 AM
  4. Query problems
    By geoffishere in forum Forms
    Replies: 1
    Last Post: 02-09-2010, 12:43 PM
  5. Problems with run permissions on a query
    By admaldo in forum Queries
    Replies: 0
    Last Post: 05-09-2006, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums