P
Pete Provencher
Using Access 2000:
Trying to write and update query where it will automatically update my
status field. It looks at the 3 options of New, Changed, or Existing. If the
entry date is over 30 days it changes it to Existing. The only exception is
if the status is currently change it will leave it at change till the 30
days is up.
Formula:
=IIF(AND([status]="Changed",[entrydate]<=Date()-30),"Existing",IIF(AND([stat
us]="New",[entrydate]<=date()-30),"Existing",IIF(AND([status]="Existing",[en
trydate]<=date()-30),"Existing",[status])))
It doesn't work. A variation of it works in excel where I first created it.
Then I changed cell disignations to field names and changed TODAY() to
DATE().
Any help will be appreciated.
Pete Provencher
Trying to write and update query where it will automatically update my
status field. It looks at the 3 options of New, Changed, or Existing. If the
entry date is over 30 days it changes it to Existing. The only exception is
if the status is currently change it will leave it at change till the 30
days is up.
Formula:
=IIF(AND([status]="Changed",[entrydate]<=Date()-30),"Existing",IIF(AND([stat
us]="New",[entrydate]<=date()-30),"Existing",IIF(AND([status]="Existing",[en
trydate]<=date()-30),"Existing",[status])))
It doesn't work. A variation of it works in excel where I first created it.
Then I changed cell disignations to field names and changed TODAY() to
DATE().
Any help will be appreciated.
Pete Provencher