Results 1 to 15 of 15
  1. #1
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24

    Dcount returning a 1 to all my my records on my form: Hel please

    Hi..



    Can someone help.

    The dcount is returning a 1 in all the records on my form.
    I using the dcount to rank the position of students in a class exam.

    Here is expressin on my form
    =DCount("*","senior report card","compflow<>" & [compflow] & " AND text359 >" & [text359])+1

    Senior report card is the name of the table
    compflow is the identification of the student and the data type is Auto
    text359 is the unbound text which contains the expression =DCount("*","senior report card","compflow<>" & [compflow] & " AND text359 >" & [text359])+1

    it is returning a 1 to all my records on the form

    Where do l miss it

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    not clear what you are saying - the implication is that the formula in text359 is trying to use a value in text359

  3. #3
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Good day Ajax

    I would like to use the Dcount to rank the position of students in a class exam.

    For example:

    Name Scored Position
    Jim 500 2
    Ken 300 3
    Jane 800 1
    Silva 200 4
    Joy 100 5

    This is what l would like the dcount to do.

    Please find attched of the the form print screen.

    Thank you AjaxDcount Expression problem.pdfDcount Expression problem.pdf

  4. #4
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    it is not clear what you are calling the controls, but based on their labels you need something like

    =DCount("*","[Senior Report Card]","[Scored]>" & me.Scored)+1

  5. #5
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Hi Ajax

    I have tried the expression you have just given me but its now returning the #Name

    Where am l missing it Ajax. Can l send you the form you check on it?

  6. #6
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    if you want

  7. #7
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Hi Ajax

    Please can l send it via your email... I could not attache my database

  8. #8
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    have sent you a PM with my email

  9. #9
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Hi Ajax

    Please may l have your email so that l can email the database

    Thank you

  10. #10
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    check you private messages

  11. #11
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Hi Ajax

    Have you received?

  12. #12
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    received email but db not attached - have responded to your email directly

  13. #13
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Hi Ajax

    I will try and Zip and send the file...

  14. #14
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24
    Hi Ajax

    I sent the zipped file. Have you received?

  15. #15
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    have received and responded to your direct email

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

Similar Threads

  1. Not returning all records
    By cbende2 in forum Queries
    Replies: 2
    Last Post: 01-07-2015, 12:07 PM
  2. Dcount records from a filtered form
    By charly.csh in forum Access
    Replies: 6
    Last Post: 11-20-2014, 01:14 PM
  3. Using DCount to check for exisitng records
    By dylcon in forum Programming
    Replies: 15
    Last Post: 06-11-2013, 02:35 PM
  4. Query not returning records
    By Daryl2106 in forum Access
    Replies: 2
    Last Post: 02-28-2013, 07:58 PM

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