Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Compare date, when date is today, change other fields

Discussion in 'Information Technology' started by TxVics, Jul 28, 2006.

  1. TxVics

    TxVics
    Expand Collapse
    Guest

    Hi,
    I have a task tracking database. When a task is on hold, say for a week, the
    fields would be be set up like this...
    [Assigned_to] To Be Assigned
    [Status] Hold
    [Priority] Hold
    [Due Date] e.g. a week from today

    When the [Assigned_to] field is "To Be Assigned", I need it to compare the
    dates so that when the [Due date] = today it will automatically change the
    fields to
    [Assigned_To] Linda
    [Status] Assigned
    [Priority] URGENT
    [Due Date] to today

    Do I need to do a query for this, or can I somehow code the field to perform
    this comparison and changes?

    Thank you!!
     
  2. Loading...


  3. KARL DEWEY

    KARL DEWEY
    Expand Collapse
    Guest

    You need to use an update query and have criteria for the [Due Date] field
    like this --
    <=Date()
    Have the query run from a macro named Autoexec so that any time the database
    is opened it checks. By using <= it checks if past due as the date could
    be set for a holiday.

    "TxVics" wrote:

    > Hi,
    > I have a task tracking database. When a task is on hold, say for a week, the
    > fields would be be set up like this...
    > [Assigned_to] To Be Assigned
    > [Status] Hold
    > [Priority] Hold
    > [Due Date] e.g. a week from today
    >
    > When the [Assigned_to] field is "To Be Assigned", I need it to compare the
    > dates so that when the [Due date] = today it will automatically change the
    > fields to
    > [Assigned_To] Linda
    > [Status] Assigned
    > [Priority] URGENT
    > [Due Date] to today
    >
    > Do I need to do a query for this, or can I somehow code the field to perform
    > this comparison and changes?
    >
    > Thank you!!
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page