Results 1 to 8 of 8
  1. #1
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162

    Dont want to display 0.00 data on a query

    I am running a query (I cant get this information any other way as its from a large table), it does what i want it to do, but is there a way to not display anything that is 0.00
    Site Code Exp Code Expense Discription SumOfE
    0272S 52 General Expenses 0.00
    0272S 54 Alarms/Access/Security/Entryph 0.00
    0272S 55 All Grounds Maintenance 1293.00
    0272S 62 Window Cleaning 0.00
    0272S 63 Cleaning General 780.00
    0272S 64 Refuse Collection 499.20
    0272S 65 Repairs & Day to Day Maint 3316.38
    0272S 67 Pest Control 0.00
    0272S 79 Electricity 252.51
    0272S 82 Water Rates 5478.50
    0272S 86 Insurance Claims Paid 0.00
    0272S 87 Insurance Premiums 0.00
    0272S 90 Ringley Management Fees 0.00
    0272S 91 Accountant & Solicitors Fees 0.00
    0272S 92 RCS Legal Fees 0.00

    Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Post the SQL for your query.

  3. #3
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Query as requested, I know i can use the filter function on the sub-form but it wont default to not display anything with 0.00

    Click image for larger version. 

Name:	Querry.jpg 
Views:	12 
Size:	149.5 KB 
ID:	15681

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Switch to SQL view and post what you see there, please.

  5. #5
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    ah sorry here you go

    SELECT [Invoices 2013].[Site Code] AS [Site Code], [Invoices 2013].[Expense Code] AS [Exp Code], [Expense Codes].[Expense Discription], Sum([Invoices 2013].E) AS SumOfE
    FROM [Expense Codes] INNER JOIN [Invoices 2013] ON [Expense Codes].[Expense Code] = [Invoices 2013].[Expense Code]
    GROUP BY [Invoices 2013].[Site Code], [Invoices 2013].[Expense Code], [Expense Codes].[Expense Discription]
    ORDER BY [Invoices 2013].[Site Code], [Invoices 2013].[Expense Code];

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You're going to need to add a WHERE clause something like:
    WHERE ([Invoices 2013].E) <> 0
    ...but I'm not really sure where. Maybe right after the FROM line.

  7. #7
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Thank you, that worked perfectly

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Great! Glad we could help.

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

Similar Threads

  1. Display relational data in query
    By james500 in forum Queries
    Replies: 1
    Last Post: 07-09-2013, 01:37 PM
  2. Display data from Query into Form
    By Sreedhart in forum Forms
    Replies: 4
    Last Post: 03-19-2013, 11:29 PM
  3. Display only sequential query data?
    By Kylester in forum Queries
    Replies: 3
    Last Post: 11-08-2012, 07:45 PM
  4. make query fields not display if null data
    By rivereridanus in forum Queries
    Replies: 1
    Last Post: 07-05-2011, 08:19 AM
  5. Replies: 6
    Last Post: 02-20-2009, 11:50 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