Summary:
can a yes/no field *add* a date to a text field when ticked (without erasing content of the text field)?
Background:
I have a yes/no "Changed" field - this fills a date-field "DateChanged" with current date
I use this to keep track of the last time an item was modified (usually a file link)
When I make another change to the item I untick Changed, the DateChanged field is then deleted. I then retick Changed and the DateChanged is refilled with current date.
Now I need to be able to keep track of multiple modification dates for an item
Query in more detail:
Can I have a text field (TextField) which will have dates added to it as the Changed field is un- & re-ticked ?
e.g.
I tick Changed on March 21st, TextField shows:
2010-03-21
Then today, I untick & retick Changed for the same item - the text field now shows
2010-03-21 2010-06-10
maybe ideally with the dates in a column
2010-03-21
2010-06-10
This way I can keep track of when an item was modified
Currently:
the Changed field's equations is the following:
A:DateChanged=int(now()) | E:DateChanged=
which deletes the DateChanged fields contents when I untick
I tried this in Changed
A:TextField=int(now())
- which doesnt work - it initially deletes TextField's contents & adds date - this date doesnt change on reticking - no additional dates are added)
Is this possible? I can always add the dates manually if this impossible or too much work!
Comments
A:DateChanged=int(now)| E:DateChanged=
AM:DatesChangedAll=AddKeywordCR(DatesChangedAll,formatdatetime(DateChanged))
Function AddKeywordCR(Fi, keyw)
dim myFi
myFi=trim(Fi & "")
if instr(myFi,keyw)=0 then
if len(myFi)>0 then myFi = myFi & vbCrLf & keyw else myFi=MyFi & keyw
End if
if myFi="" then myFi=null
AddKeywordCR=myFi
End Function
then I realised I had to make the field multiline: