Results 1 to 5 of 5
  1. #1
    rsearing is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    7

    Report "WHERE" clause not working

    I am new - please go easy - and very confused why this isn't working. I have a report that works great when I click on the report "New Parents Billing" It shows both parents - and all their children (it's a daycare center app). The problem is - when I run the report from the form I created "f_calculate bill" It's *supposed* to work so that if you don't click on a parent from the dropdown - it will query all parents - or if you click on a specific parent and "view report" - it will choose that individual. Problem is when I click on "Mark Sutton" - he doesn't show up - not even his ID - however, the query that the report is based upon ("query4") does show the record (id is 2).



    I have uploaded the 2 database files at:

    ftp://www.kofc1913.org/GregoryDayCare.mdb
    ftp://www.kofc1913.org/GregoryDayCare_be.mdb

    I am thoroughly confused - please help.

    Sincerely,
    Rob

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,912
    Rob,
    Compact and Repair both files and then put the in one ZIP file and just attach it to your post here. Both files do not want to download as you have them.
    (RG for short) aka Allan Bunch Previous MS Access MVP - WinXP Pro, Win7 Pro Win10 Pro - acXP, ac07, ac10, ac13
    How to mark the thread as Solved!
    Teaching is not filling a bucket but lighting a fire.
    Borrowed quote..."Docendo discimus"

  3. #3
    rsearing is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    7

    Database attached

    Good suggestion - database is uploaded. Not sure why - but whenever I move the files - I always seem to have to go into the .mdb main file and right click on any of the "linked" tables - and then perform the link manager on them to re-link the _be.mdb file with the tables.

    Thank you so much,
    Rob

  4. #4
    rsearing is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    7
    Figured it out. Basically - the filter was also calculating dates. Although I now had parentId's - in the case of Mark - I didn't ahve a date - so I changed my WhereClause to include date returns with NULL.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,912
    Excellent! You always learn so much more when you fix it yourself. Thanks for posting back.
    (RG for short) aka Allan Bunch Previous MS Access MVP - WinXP Pro, Win7 Pro Win10 Pro - acXP, ac07, ac10, ac13
    How to mark the thread as Solved!
    Teaching is not filling a bucket but lighting a fire.
    Borrowed quote..."Docendo discimus"

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

Similar Threads

  1. Replies: 21
    Last Post: 06-03-2009, 05:54 PM
  2. aSTR = Dir("C:\*.*") >> "Type Mismatch"
    By JGrant in forum Programming
    Replies: 1
    Last Post: 03-28-2009, 05:17 AM
  3. Export to .rtf of "104-" converts to "-655&qu
    By Sherri726 in forum Import/Export Data
    Replies: 0
    Last Post: 12-19-2006, 03:16 PM
  4. Replies: 2
    Last Post: 08-31-2006, 12:19 PM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 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 - Senior Forums