I'm trying to make a "last modified" field for a data access page by adding a line to the default "save" action:

<SCRIPT language=javascript event=onclick for=save>
XXX = Date()
try { MSODSC.CurrentSection.DataPage.Save(); }
catch (e)
{ alert (e.description);}

I'd like to have it save the Date() value to the field [LastAccessed] in table (Table1) but I'm not so familiar with the syntax. Help anyone? Thanks.