Results 1 to 5 of 5
  1. #1
    James Bricko is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    2

    SQL for Overdue Loans *HELP PLEASE*

    Hi guys,
    I am quite new to access and I need some help for a school assignment involving a Library Database.
    What I need help on is to create a Query capable of displaying overdue loans. I have included screenshots of the Query and the SQL. Having no idea how to use SQL I have really bummed out on this one.


    If you would like to view my Database File, just send me your email and I can email it as the upload doesn't seem to work.
    Thanks in advance!
    Attached Thumbnails Attached Thumbnails capture 2.PNG   Capture.PNG  

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It will be easier to do in design view if you're not familiar with SQL. Hint, you can use the Date() function to return today's date.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    James Bricko is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    2
    Oh, I probably should point out the assignment requires the use of SQL. I should add that I want it to display the loans that are overdue after running the SQL Command. I was thinking of something where it selects the Data which has a Due Date before the current date (meaning it is overdue).

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Design view is just an interface to create SQL.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    So the SQL in the first image returns all of the records, yes?
    How do you limit the records returned?

    You know how to limit the records - you wrote it!
    I was thinking of something where it selects the Data which has a Due Date before the current date
    How would you write this in SQL??? (see http://www.w3schools.com/sql/default.asp)

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

Similar Threads

  1. Filter overdue dates
    By jhallcb in forum Access
    Replies: 6
    Last Post: 03-10-2015, 10:56 AM
  2. Overdue Account Query- Access 2010
    By lfarring in forum Queries
    Replies: 3
    Last Post: 06-04-2013, 03:31 PM
  3. Query for overdue maintenance
    By Rzadziu in forum Queries
    Replies: 4
    Last Post: 01-11-2013, 06:46 AM
  4. Setting an alert that a payment is overdue
    By bellevue in forum Database Design
    Replies: 6
    Last Post: 04-04-2012, 02:54 AM
  5. Replies: 5
    Last Post: 04-01-2012, 07:21 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