Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Access Query Problem

  • 03-04-2011 12:59pm
    #1
    Registered Users, Registered Users 2 Posts: 602 ✭✭✭


    I am having some difficulty with a simple query I am trying run against an access DB.

    I need to return all records that have been created against an [opened date] field.

    I need the query to look at the [opened date] then calculate the date for the previous 5 working days and return the records for that query.

    here is what I am trying at the moment

    =dateadd("w", -5, [Opened Date])

    it returns no records.

    however, when I change the -5 to >5 or <5 it returns all the records.

    anyone any ideas?

    **Edit**

    After reading what I wrote I have just had an epiphany, it would make no sense it trying to run that as it would always return true.

    I have a second condition which I wanted the query to run against until the user had selected it (checkbox)

    I think I may have it now, if I run it against todays date - opened date and see if that falls into the 5 day range, that should give me what I want. I will also have a second query to catch anything which has not met the second condition but falls outside the 5 day range, I think thats it.


Advertisement