Results 1 to 4 of 4
  1. #1
    aymanmb is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Dec 2013
    Posts
    5

    query based on a field

    I have a table that contains a field for order number of weeks prepared.

    I have a query that I want to specify to list all clients based on that number of weeks.

    The query should list client orders to be done today according to following formula

    today's date - (number of weeks - 3 days)



    how can I type above in the query criteria.

    Thanks

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Can you clarify more on your formula?

    For example: Today is December 13, 2013 Friday

    Dec 13, 2013 - (??Number of weeks?? - ?? 3 days ??)

    How do you determined Number of weeks? (table that contains a field for order number of weeks prepared)

    How do you get the 3 days from?

  3. #3
    aymanmb is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Dec 2013
    Posts
    5
    Hi lfpm062010,

    the number of weeks is a field in a table (changes for each order), so it has to be referred to in the formua, but do not know how. as for the 3, it is just number of days I give for myself ahead of next due day to prepare next order.

    I hope this clarify your question.

    Thanks

  4. #4
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Without knowing the table sturcture.

    TableName: have [number of weeks] and [the days to be subtracted]

    Now() - ([TableName].[number of weeks] - [TableName].)[the days to be subtracted])

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

Similar Threads

  1. Re-query Field Based On Selection
    By mes5464 in forum SharePoint
    Replies: 1
    Last Post: 08-08-2013, 10:03 AM
  2. Query that sums a field based on 2 tables
    By scratchmb in forum Queries
    Replies: 6
    Last Post: 03-18-2012, 08:31 PM
  3. data field in query twice based on criteria
    By sandyg in forum Queries
    Replies: 1
    Last Post: 09-29-2011, 07:47 AM
  4. Replies: 1
    Last Post: 08-31-2011, 04:03 PM
  5. query - criteria based on another row field value
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 05-29-2009, 04:17 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