Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12

    Would like to pull records on query report using an unbound checkbox

    Hi ,



    first time poster with no coding experience and basic access skills. Please be kind

    Have searched forums and either im staring at answers and not getting it or what i want to do is unworkable.

    Using a subform within a Navigation Form I would like to return records on query report using an unbound checkbox. This unbound checkbox when True would then return all false records from 3 other table Fields (Done, Done2,Done3) which are True/false fields (these have been written to by other bound checkboxes on a different sub form).

    Hoping someone may have a simple query statement that i can place in the criteria to return the result im after. I have tried several in the Done field and togetor in all 3 with no luck


    Thanks

    AaronClick image for larger version. 

Name:	Capture23.JPG 
Views:	11 
Size:	35.4 KB 
ID:	44178
    Attached Thumbnails Attached Thumbnails Capture22.JPG  

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Replace the & with AND
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Quote Originally Posted by Bob Fitz View Post
    Replace the & with AND
    Hi Bob, thanks for helping, i tried this but it shifted it to a new column in query design view, i assume it means its not happy with the statement? It also returned all records wether true or false and im after false for all 3 Done fields (which i forgot to mention)

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Try:
    [Forms]![Navigation Form]![NavigationSubform].[Form]![Check64] = True
    as the criteria for each of the Done columns
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    That also looks like your DB is structured incorrectly?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Quote Originally Posted by Bob Fitz View Post
    Try:
    [Forms]![Navigation Form]![NavigationSubform].[Form]![Check64] = True
    as the criteria for each of the Done columns
    Thanks for quick response, tried this but its pulling both true and false records up for the done,done2,and done3 field rather than all false or all true

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Quote Originally Posted by aaron1riley View Post
    Thanks for quick response, tried this but its pulling both true and false records up for the done,done2,and done3 field rather than all false or all true
    Please post a copy of your db with a few dummy records to illustrate the problem.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    possibly , but i dont think things are being conflicted even if it is. I run 2 seperate query reports which work flawlessly but trying the new mentioned feature isnt.

  9. #9
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Quote Originally Posted by Welshgasman View Post
    That also looks like your DB is structured incorrectly?
    possibly , but i dont think things are being conflicted even if it is. I run 2 seperate query reports which work flawlessly but trying the new mentioned feature isnt.

  10. #10
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Quote Originally Posted by Bob Fitz View Post
    Please post a copy of your db with a few dummy records to illustrate the problem.
    Hi Bob could i possibly email it to you its over 500kb its at 3.4mb

    Thanks

  11. #11
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Quote Originally Posted by aaron1riley View Post
    Hi Bob could i possibly email it to you its over 500kb its at 3.4mb

    Thanks
    Run a Compact and Repair. Then Zip it. Should be small enough then.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  12. #12
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Quote Originally Posted by Bob Fitz View Post
    Run a Compact and Repair. Then Zip it. Should be small enough then.
    MaintenanceLog_fe.zipMaintenanceLog_be.zip

  13. #13
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    so when i go to the "compile 5 whys form" i would like to select "checkbox64" to return all false "Done","Done2" and "Done3" records.

  14. #14
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Sorry.

    Criteria for each column should be just:
    [Forms]![Navigation Form]![NavigationSubform].[Form]![Check64]
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  15. #15
    aaron1riley is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Tried this a spart of my problem solving and tried it again but it brings up both true and false records togethor. Perhaps something is conflicting the statement.

    I would have thought you would need some form of statement to suggest when "check 64" is true then return records which have false data entries in the Done,Done2,Done3 fields. Maybe some sort of IF/Then statement

    Something is definetly conflicting it as i just entered false for each column and both true and false came up togethor

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 10-08-2020, 04:31 PM
  2. Query to Pull all the records
    By Shamli in forum Access
    Replies: 9
    Last Post: 08-14-2018, 04:48 PM
  3. Query doesn't pull all records
    By tbjmobile@gmail.com in forum Queries
    Replies: 13
    Last Post: 02-24-2018, 05:53 AM
  4. Unbound combobox doesn't pull in ALL records
    By TeamTraveler in forum Forms
    Replies: 9
    Last Post: 05-07-2015, 08:49 AM
  5. Replies: 1
    Last Post: 04-10-2014, 12:55 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