Results 1 to 8 of 8
  1. #1
    juriemagic is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Location
    Witbank,South Africa
    Posts
    14

    countif function no clue

    Hi good people!,

    If you have time and patience, then I beg you for your help. I am trying to set up a query that would countif how many zeros are in a column. The field name is TV and there are 21 records in this field, ranging from 0 to 2. I am learning queries now and I do know that you enter query design view. I have fiddled somewhat with the fields at the bottom but I obviously don't know what I'm doing. Since this morning I have searched, found some answers, but all answers were given in a much higher than basic way, meaning the people involved knew what was being said and meant. Please, I need step by step "how and what to do" instructions. Please, I am at my wits end..

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Select count([tv]) from table where [tv] = 0

  3. #3
    juriemagic is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Location
    Witbank,South Africa
    Posts
    14
    Thank you, what do I do with this info?...where do I go?..As I have explained, I know less than nothing when it comes to calculations in Acess. Please guide me if you don't mind?

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,841
    copy ranman's code then in the query design window, click on the SQL button option top left - then paste ranman's code. Note you will need to change the word 'table' to the name of the table which has the field 'tv'. If the table name has spaces you will need to use square brackets e.g. [table name]

  5. #5
    juriemagic is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Location
    Witbank,South Africa
    Posts
    14
    okay, thanx for the info...uhm, I don't know what to say, I'm just plain stupid I suppose. I do not see an SQL button anywhere, don't know what it looks like...and so I can go on. Ajax, I appreciate your time, but it's okay. I have decided I am not going to waste you guys time anymore on me and my stupidity. I'll just google stuff that I want to know, see if I can do some crash courses, and if it takes me a year to do just a simple sum calculation, then so be it. Really, don't worry about this anymore. Thanx again..

  6. #6
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,841
    click on the downarrow here
    Click image for larger version. 

Name:	ScreenHunter_02 Apr. 24 14.16.jpg 
Views:	5 
Size:	19.5 KB 
ID:	20438

    Sounds like it would be a good idea for you to buy a book or find some youtube examples to get the basics

  7. #7
    juriemagic is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Location
    Witbank,South Africa
    Posts
    14
    haha, absolutely. Anyways, I have made a breakthrough!!!...yippeeeee!!!..I found the SQL button, pasted the code and it works great!...Thanx again!

  8. #8
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,841
    it's all progress!

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

Similar Threads

  1. Countif
    By voro in forum Queries
    Replies: 6
    Last Post: 10-08-2012, 12:12 PM
  2. No clue where to start
    By jdm0804 in forum Access
    Replies: 1
    Last Post: 09-14-2011, 03:07 PM
  3. Similar to countif
    By JonHFL in forum Access
    Replies: 2
    Last Post: 06-04-2010, 10:55 AM
  4. Oat-so-simple but i dont have a clue
    By turbo910 in forum Forms
    Replies: 13
    Last Post: 11-26-2009, 12:28 PM
  5. 1st Access application. Needs a clue..
    By Icedog in forum Access
    Replies: 3
    Last Post: 09-24-2008, 09:38 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