Results 1 to 5 of 5
  1. #1
    bjsbrown is offline Novice
    Windows 7 Access 2000
    Join Date
    Oct 2009
    Posts
    21

    automatically having a field filled in based on another field's criteria

    Saw a similar recent post but it just sorta ended so couldn't use.



    Within a table, I have a field named date and a field named qtr. On the form, I want to automatically fill in the qtr field based on the date field. for ex: if date=>01/01/2010 and date=<03/31/2010; qtr=1. Then if date=>04/01/2010 and date =<06/30/2010, qtr=2, etc, etc. Is this possible? If so, please point me in the right direction. Thanks.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Your on the right track, consider a different column for each quarter.

    This must be a problem for a class. I answered a similar post tonight.

  3. #3
    bjsbrown is offline Novice
    Windows 7 Access 2000
    Join Date
    Oct 2009
    Posts
    21
    No class for me. So do I do this in a query with sql or what. How do I begin. Thanks for responding.

  4. #4
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    For simplicity, do it in multiple append queries to a temporary stack table, one query for each date interval. Store data in appropriate columns.

    Multiple queries may seem to make the solution onerous, but it keeps the solution simple and easy to understand and support.

  5. #5
    bjsbrown is offline Novice
    Windows 7 Access 2000
    Join Date
    Oct 2009
    Posts
    21
    That's way beyond my beginner's level. Anyway to restate in simplier terms or give examples. Thanks.

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

Similar Threads

  1. Replies: 0
    Last Post: 10-14-2009, 02:44 AM
  2. Creating field based an another field's total
    By yashysmashy in forum Queries
    Replies: 0
    Last Post: 09-02-2009, 03:48 AM
  3. Replies: 0
    Last Post: 07-30-2009, 12:40 PM
  4. query - criteria based on another row field value
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 05-29-2009, 04:17 PM
  5. Counting records based on specified criteria
    By GrnISSO in forum Queries
    Replies: 2
    Last Post: 10-04-2007, 03:07 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