Results 1 to 6 of 6
  1. #1
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179

    AFRs To Close Query

    Hello,

    I created a query (AFRs To Close) to show 'Open' AFRs (records) that have Finished Dates that I would like to change the Status field to 'Closed' at the end of the business day.

    Can this be done automatically by computer time or maybe a button to click?



    Thank you

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  3. #3
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    I have no idea how this relates but to each his own.
    Bye

  4. #4
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    You must not have read the initial post correctly. All I am trying to do with this thread is to change the Status field.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Try
    Code:
    UPDATE AFRs SET AFRs.Status = "Closed"
    WHERE (((AFRs.Status)="Open") AND ((IsDate([AFRs].[FinishedDate]))<>False));
    You could invoke the query from a button or other condition based on requirement.

  6. #6
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Thank you that works by manually running the code. It closes AFRs that have Finished Dates.

    Can this possibly show the AFR Numbers in question then have a message saying: "Are you sure you want to close these AFRs?"

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

Similar Threads

  1. How to get IDs For AFRs Table ?
    By billgyrotech1 in forum Access
    Replies: 7
    Last Post: 05-30-2019, 11:05 AM
  2. Replies: 5
    Last Post: 11-02-2015, 09:51 AM
  3. Replies: 5
    Last Post: 09-01-2014, 12:11 PM
  4. Replies: 4
    Last Post: 01-31-2014, 11:47 AM
  5. Replies: 2
    Last Post: 06-20-2011, 03:10 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