Results 1 to 3 of 3
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    Help with SQL Query

    I have a table named customer and in that table I have several fields. I am wanting to be able to display customers whose bill is over 30 days past due (field name is BillDueDate) and then take those customers and update the field Inactive to Yes.



    For the life of me I can't figure out how to set up this query in SQL, can someone please assist!?

    I think this will display the bill portion, but to throw in the update I am lost...
    Code:
    Select * from Customer WHERE BillDueDate > 30

  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,640
    You'd want to use DateAdd to subtract 30 days from today. Or because it's days you can simply subtract:

    (Date() - 30)

    Your sign is reversed by the way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Aragan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    22
    edit: didnt notice it was solved XD

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

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