Results 1 to 4 of 4
  1. #1
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82

    Update Query Dependent on the month

    I have two tables, one called Yearly which is the table that is going to be updated and has 3 columns for each month used, and a Initial table which has rows for each feeder and month, for example there are 4 rows for each name because of the year is split into 4 portions. The date is in the Initial table and is Field3 and comes in the form 01-15-2010. I was wondering how I can update those three columns depending on the month? If you can explain it in the design view that would be a lot better because I am still not too familiar with SQL.

  2. #2
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Have you tried using the DatePart() function to extract the month from your date? I would recommend you do some research on DatePart() to see if that is what you're trying to accomplish.

  3. #3
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82
    thanks for the help, that was exactly what i needed!

  4. #4
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Glad that helped!

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

Similar Threads

  1. Creating a query with a self-dependent field
    By lottrup in forum Queries
    Replies: 0
    Last Post: 06-20-2011, 04:30 AM
  2. Month To Date Query
    By jmorse in forum Queries
    Replies: 3
    Last Post: 03-11-2011, 11:25 AM
  3. Track capacity changes month by month
    By Nils in forum Database Design
    Replies: 1
    Last Post: 02-18-2011, 03:03 PM
  4. Replies: 5
    Last Post: 11-15-2010, 06:12 PM
  5. SQL Query by day to end of month
    By tcasey in forum Queries
    Replies: 0
    Last Post: 10-07-2008, 09: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