Ask Experts Questions for FREE Help !
Ask
    Yamie's Avatar
    Yamie Posts: 1, Reputation: 1
    New Member
     
    #1

    Feb 22, 2007, 06:44 AM
    Access Queries
    Am new and very happy to be in this forum.

    I have an access database which comprises of many tables. My problem is I am tryng to develop a query possibly in design view which needs to use this condition

    if storagedays>7 then storagedays=storagedays-7. unfortunately I haven't done it before.. am used to simple conditions

    Ur help will be of influential importance

    CLARIFICATION

    Thanks here is my clarification.

    The query has a number of field which will be retrieving data according to other defined conditions but with the conditions, it has to check a calculated field value [storagedays] which has to at the same check if the calculated field value is > 7 if so then deduct 7 from the storagedays .

    Please if still unclear give your email address so that I can send you the screen shots
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Feb 22, 2007, 06:51 AM
    First, Welcome

    I'm not clear what you need to do here. Are you trying to update a value in a table, display a calculation or what?

    If you are trying to display a calc then add a column with the expression:

    AdjStorageDays: IIF([Storagedays]>7,[Storagedays]-7,[Storagedays])

    If you are looking to update the Storage days value, then create an Update Query in Design mode. In the Update To row enter:

    [Storagedays]-7

    In the Criteria Row enter:

    >7

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Cat & Kitten queries [ 1 Answers ]

I have 2 adult female cats and one male kitten found as a stray. After about a week here the kitten is having bowel control problems. His stools are soft/loose and just drops out of him. He won't clean himself and sleeps a lot. Vomited only once (that I know of), full of food chunks. One of the...

Economics queries [ 2 Answers ]

Hi I need some information on (1) Comparative Advantage - Keynesian Economics (2) Effects and reasons for tariffs (3) under vs over valuation of currency and its consequences on the domestic economy

Can't access pop3, Pop3 access not working from my computer [ 1 Answers ]

I have XP SP 2 - Its been about a week since any of my pop3 accounts have worked (Gawab, Gmail, Spymac, Toughguy). The error messages I am receiving on all of my pop3 accounts are similar to : The host 'pop.gawab.com' could not be found. Please verify that you have entered the server name...


View more questions Search